Home
last modified time | relevance | path

Searched refs:tab (Results 1 – 25 of 32) sorted by relevance

12

/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DCompatActionBarNavHandler.java54 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
56 mNavListener.onCategorySelected(tab.getPosition()); in onTabSelected()
76 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
84 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DTabHelperEclair.java64 public void addTab(CompatTab tab) { in addTab() argument
65 String tag = tab.getTag(); in addTab()
68 if (tab.getIcon() != null) { in addTab()
69 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText(), tab.getIcon()); in addTab()
71 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText()); in addTab()
81 tab.setFragment(fragment); in addTab()
89 mTabs.put(tag, tab); in addTab()
DTabHelperHoneycomb.java46 public void addTab(CompatTab tab) { in addTab() argument
47 String tag = tab.getTag(); in addTab()
54 tab.setFragment(fragment); in addTab()
62 if (tab.getCallback() == null) { in addTab()
68 mActionBar.addTab((ActionBar.Tab) tab.getTab()); in addTab()
DCompatTabListener.java29 public void onTabSelected(CompatTab tab, FragmentTransaction ft); in onTabSelected() argument
35 public void onTabUnselected(CompatTab tab, FragmentTransaction ft); in onTabUnselected() argument
41 public void onTabReselected(CompatTab tab, FragmentTransaction ft); in onTabReselected() argument
DCompatTabHoneycomb.java83 public void onTabReselected(Tab tab, android.app.FragmentTransaction f) { in onTabReselected() argument
91 public void onTabSelected(Tab tab, android.app.FragmentTransaction f) { in onTabSelected() argument
DTabHelper.java73 public abstract void addTab(CompatTab tab); in addTab() argument
/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DActionBarTabsPager.java109 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() argument
111 tab.setTag(info); in addTab()
112 tab.setTabListener(this); in addTab()
114 mActionBar.addTab(tab); in addTab()
143 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
144 Object tag = tab.getTag(); in onTabSelected()
153 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
157 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DFragmentNestingPagerSupport.java107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() argument
109 tab.setTag(info); in addTab()
110 tab.setTabListener(this); in addTab()
112 mActionBar.addTab(tab); in addTab()
141 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
142 Object tag = tab.getTag(); in onTabSelected()
151 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
155 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DFragmentNestingStatePagerSupport.java107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() argument
109 tab.setTag(info); in addTab()
110 tab.setTabListener(this); in addTab()
112 mActionBar.addTab(tab); in addTab()
141 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
142 Object tag = tab.getTag(); in onTabSelected()
151 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
155 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
/development/samples/training/TabCompat/src/com/example/android/tabcompat/
DMainActivity.java77 public void onTabSelected(CompatTab tab, FragmentTransaction ft) { in onTabSelected() argument
79 Fragment fragment = tab.getFragment(); in onTabSelected()
83 tab.setFragment(fragment); in onTabSelected()
84 ft.add(android.R.id.tabcontent, fragment, tab.getTag()); in onTabSelected()
92 public void onTabUnselected(CompatTab tab, FragmentTransaction ft) { in onTabUnselected() argument
93 Fragment fragment = tab.getFragment(); in onTabUnselected()
101 public void onTabReselected(CompatTab tab, FragmentTransaction ft) { in onTabReselected() argument
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentTabsFragment.java163 TabInfo tab = mTabs.get(i); in handleViewStateRestored() local
164 tab.fragment = mManager.findFragmentByTag(tab.tag); in handleViewStateRestored()
165 if (tab.fragment != null && !tab.fragment.isDetached()) { in handleViewStateRestored()
166 if (tab.tag.equals(currentTab)) { in handleViewStateRestored()
170 mLastTab = tab; in handleViewStateRestored()
177 ft.detach(tab.fragment); in handleViewStateRestored()
218 TabInfo tab = mTabs.get(i); in doTabChanged() local
219 if (tab.tag.equals(tabId)) { in doTabChanged()
220 newTab = tab; in doTabChanged()
DFragmentNestingTabs.java98 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
113 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DActionBarTabs.java96 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
100 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
104 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DFragmentTabs.java98 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
113 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DActionBarDisplayOptions.java141 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
145 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
149 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
/development/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DTabLayoutCustomItemsUsage.java43 TabLayout.Tab tab = tabLayout.newTab(); in onCreate() local
45 tabLayout.addTab(tab); in onCreate()
46 tab.setCustomView(R.layout.design_tab_custom); in onCreate()
/development/samples/browseable/ActionBarCompat-Styled/src/com.example.android.actionbarcompat.styled/
DMainActivity.java65 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabSelected() argument
71 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabUnselected() argument
77 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabReselected() argument
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/
DLNotificationActivity.java66 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabReselected() argument
71 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabSelected() argument
76 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
/development/samples/browseable/HorizontalPaging/src/com.example.android.horizontalpaging/
DMainActivity.java106 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabSelected() argument
108 mViewPager.setCurrentItem(tab.getPosition()); in onTabSelected()
116 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabUnselected() argument
123 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabReselected() argument
/development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/
DMainActivity.java94 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabUnselected() argument
98 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabSelected() argument
100 mViewPager.setCurrentItem(tab.getPosition()); in onTabSelected()
104 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { in onTabReselected() argument
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
DActionBarTabs.java94 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
99 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
104 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DActionBarDisplayOptions.java160 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
164 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
168 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DTitlesFragment.java237 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabSelected() argument
240 titleFrag.populateTitles(tab.getPosition()); in onTabSelected()
249 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
252 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabReselected() argument
/development/samples/browseable/SlidingTabsColors/
D_index.jd9 ViewPager title strip, with custom coloring for each tab.
/development/samples/ApiDemos/src/com/example/android/apis/view/
DVideoPlayerActivity.java271 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
275 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
279 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument

12