public abstract class CacheFragmentStatePagerAdapter
extends FragmentStatePagerAdapter
| コンストラクタと説明 |
|---|
CacheFragmentStatePagerAdapter(FragmentManager fm) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected java.lang.String |
createCacheIndex(int index)
Create an index string for caching Fragment pages.
|
protected java.lang.String |
createCacheKey(int position)
Create a key string for caching Fragment pages.
|
protected abstract Fragment |
createItem(int position)
Create a new Fragment instance.
|
void |
destroyItem(android.view.ViewGroup container,
int position,
java.lang.Object object) |
Fragment |
getItem(int position)
Get a new Fragment instance.
|
Fragment |
getItemAt(int position)
Get the item at the specified position in the adapter.
|
void |
restoreState(android.os.Parcelable state,
java.lang.ClassLoader loader) |
android.os.Parcelable |
saveState() |
public android.os.Parcelable saveState()
public void restoreState(android.os.Parcelable state,
java.lang.ClassLoader loader)
public Fragment getItem(int position)
createItem(int) instead.
position - position of the item in the adapterpublic void destroyItem(android.view.ViewGroup container,
int position,
java.lang.Object object)
public Fragment getItemAt(int position)
position - position of the item in the adapterprotected abstract Fragment createItem(int position)
getItem(int).position - position of the item in the adapterprotected java.lang.String createCacheIndex(int index)
index - index of the item in the adapterprotected java.lang.String createCacheKey(int position)
position - position of the item in the adapter