Lines Matching refs:position
84 * Return the Fragment associated with a specified position.
86 public abstract Fragment getItem(int position);
93 public Object instantiateItem(ViewGroup container, int position) {
98 if (mFragments.size() > position) {
99 Fragment f = mFragments.get(position);
109 Fragment fragment = getItem(position);
110 if (DEBUG) Log.v(TAG, "Adding item #" + position + ": f=" + fragment);
111 if (mSavedState.size() > position) {
112 Fragment.SavedState fss = mSavedState.get(position);
117 while (mFragments.size() <= position) {
122 mFragments.set(position, fragment);
129 public void destroyItem(ViewGroup container, int position, Object object) {
135 if (DEBUG) Log.v(TAG, "Removing item #" + position + ": f=" + object
137 while (mSavedState.size() <= position) {
140 mSavedState.set(position, mFragmentManager.saveFragmentInstanceState(fragment));
141 mFragments.set(position, null);
147 public void setPrimaryItem(ViewGroup container, int position, Object object) {