public class MenuPagerAdapter extends PagerAdapter
POSITION_NONE, POSITION_UNCHANGED| Constructor and Description |
|---|
MenuPagerAdapter(Context context,
boolean isDrinks) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyItem(View pager,
int position,
Object view) |
void |
finishUpdate(View view) |
int |
getCount() |
Object |
instantiateItem(View pager,
int position) |
boolean |
isViewFromObject(View view,
Object object) |
void |
restoreState(Parcelable p,
ClassLoader c) |
Parcelable |
saveState() |
void |
startUpdate(View view) |
destroyItem, finishUpdate, getItemPosition, getPageTitle, getPageWidth, instantiateItem, notifyDataSetChanged, setPrimaryItem, setPrimaryItem, startUpdatepublic MenuPagerAdapter(Context context, boolean isDrinks)
public int getCount()
getCount in class PagerAdapterpublic Object instantiateItem(View pager, int position)
instantiateItem in class PagerAdapterpublic void destroyItem(View pager, int position, Object view)
destroyItem in class PagerAdapterpublic boolean isViewFromObject(View view, Object object)
isViewFromObject in class PagerAdapterpublic void finishUpdate(View view)
finishUpdate in class PagerAdapterpublic void restoreState(Parcelable p, ClassLoader c)
restoreState in class PagerAdapterpublic Parcelable saveState()
saveState in class PagerAdapterpublic void startUpdate(View view)
startUpdate in class PagerAdapter