-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5f269d
commit 954478a
Showing
31 changed files
with
1,339 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
LangTutor/app/src/main/java/com/shah/langtutor/French/FrenchAlphabetsFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.shah.langtutor.French; | ||
|
||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.TextView; | ||
|
||
import com.shah.langtutor.R; | ||
|
||
/** | ||
* A simple {@link Fragment} subclass. | ||
*/ | ||
public class FrenchAlphabetsFragment extends Fragment { | ||
|
||
|
||
public FrenchAlphabetsFragment() { | ||
// Required empty public constructor | ||
} | ||
|
||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||
Bundle savedInstanceState) { | ||
View rootView = inflater.inflate(R.layout.words_list, container,false); | ||
return rootView; | ||
} | ||
|
||
} |
47 changes: 47 additions & 0 deletions
47
LangTutor/app/src/main/java/com/shah/langtutor/French/FrenchCategoryAdapter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.shah.langtutor.French; | ||
|
||
import android.support.v4.app.Fragment; | ||
import android.support.v4.app.FragmentManager; | ||
import android.support.v4.app.FragmentPagerAdapter; | ||
|
||
|
||
/** | ||
* Created by lenovo on 18-12-2017. | ||
*/ | ||
|
||
public class FrenchCategoryAdapter extends FragmentPagerAdapter { | ||
|
||
/** | ||
* Create a new {@link FrenchCategoryAdapter} object. | ||
* | ||
* @param fm is the fragment manager that will keep each fragment's state in the adapter | ||
* across swipes. | ||
*/ | ||
public FrenchCategoryAdapter(FragmentManager fm) { | ||
super(fm); | ||
} | ||
|
||
/** | ||
* Return the {@link Fragment} that should be displayed for the given page number. | ||
*/ | ||
@Override | ||
public Fragment getItem(int position) { | ||
if (position == 0) { | ||
return new FrenchAlphabetsFragment(); | ||
} else if (position == 1) { | ||
return new FrenchNumbersFragment(); | ||
} else if (position == 2) { | ||
return new FrenchColorsFragment(); | ||
} else { | ||
return new FrenchPhrasesFragment(); | ||
} | ||
} | ||
|
||
/** | ||
* Return the total number of pages. | ||
*/ | ||
@Override | ||
public int getCount() { | ||
return 4; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
LangTutor/app/src/main/java/com/shah/langtutor/French/FrenchColorsFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.shah.langtutor.French; | ||
|
||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.TextView; | ||
|
||
import com.shah.langtutor.R; | ||
|
||
/** | ||
* A simple {@link Fragment} subclass. | ||
*/ | ||
public class FrenchColorsFragment extends Fragment { | ||
|
||
|
||
public FrenchColorsFragment() { | ||
// Required empty public constructor | ||
} | ||
|
||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||
Bundle savedInstanceState) { | ||
View rootView = inflater.inflate(R.layout.words_list, container,false); | ||
return rootView; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
LangTutor/app/src/main/java/com/shah/langtutor/French/FrenchNumbersFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.shah.langtutor.French; | ||
|
||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.TextView; | ||
|
||
import com.shah.langtutor.R; | ||
|
||
/** | ||
* A simple {@link Fragment} subclass. | ||
*/ | ||
public class FrenchNumbersFragment extends Fragment { | ||
|
||
|
||
public FrenchNumbersFragment() { | ||
// Required empty public constructor | ||
} | ||
|
||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||
Bundle savedInstanceState) { | ||
View rootView = inflater.inflate(R.layout.words_list, container,false); | ||
return rootView; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
LangTutor/app/src/main/java/com/shah/langtutor/French/FrenchPhrasesFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.shah.langtutor.French; | ||
|
||
|
||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.TextView; | ||
|
||
import com.shah.langtutor.R; | ||
|
||
/** | ||
* A simple {@link Fragment} subclass. | ||
*/ | ||
public class FrenchPhrasesFragment extends Fragment { | ||
|
||
|
||
public FrenchPhrasesFragment() { | ||
// Required empty public constructor | ||
} | ||
|
||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||
Bundle savedInstanceState) { | ||
View rootView = inflater.inflate(R.layout.phrases_list, container,false); | ||
return rootView; | ||
} | ||
|
||
} |
Oops, something went wrong.