Home
last modified time | relevance | path

Searched refs:newTab (Results 1 – 18 of 18) sorted by relevance

/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DTabHelperEclair.java99 CompatTab newTab = mTabs.get(tabId); in onTabChanged() local
102 if (mLastTab != newTab) { in onTabChanged()
109 if (newTab != null) { in onTabChanged()
111 newTab.getCallback().onTabSelected(newTab, ft); in onTabChanged()
114 mLastTab = newTab; in onTabChanged()
117 newTab.getCallback().onTabReselected(newTab, ft); in onTabChanged()
DTabHelper.java65 public CompatTab newTab(String tag) { in newTab() method in TabHelper
DCompatTabHoneycomb.java40 mTab = activity.getActionBar().newTab(); in CompatTabHoneycomb()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentTabsFragment.java216 TabInfo newTab = null; in doTabChanged() local
220 newTab = tab; in doTabChanged()
223 if (newTab == null) { in doTabChanged()
226 if (mLastTab != newTab) { in doTabChanged()
235 if (newTab != null) { in doTabChanged()
236 if (newTab.fragment == null) { in doTabChanged()
237 newTab.fragment = Fragment.instantiate(mContext, in doTabChanged()
238 newTab.clss.getName(), newTab.args); in doTabChanged()
239 ft.add(mContainerId, newTab.fragment, newTab.tag); in doTabChanged()
241 ft.attach(newTab.fragment); in doTabChanged()
[all …]
DFragmentNestingTabs.java42 bar.addTab(bar.newTab() in onCreate()
46 bar.addTab(bar.newTab() in onCreate()
50 bar.addTab(bar.newTab() in onCreate()
54 bar.addTab(bar.newTab() in onCreate()
DFragmentTabs.java42 bar.addTab(bar.newTab() in onCreate()
46 bar.addTab(bar.newTab() in onCreate()
50 bar.addTab(bar.newTab() in onCreate()
54 bar.addTab(bar.newTab() in onCreate()
DActionBarDisplayOptions.java63 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this)); in onCreate()
64 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this)); in onCreate()
65 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this)); in onCreate()
DActionBarTabs.java48 bar.addTab(bar.newTab() in onAddTab()
/development/samples/browseable/ActionBarCompat-Styled/src/com.example.android.actionbarcompat.styled/
DMainActivity.java50 ab.addTab(ab.newTab().setText("Tab 1").setTabListener(this)); in onCreate()
51 ab.addTab(ab.newTab().setText("Tab 2").setTabListener(this)); in onCreate()
52 ab.addTab(ab.newTab().setText("Tab 3").setTabListener(this)); in onCreate()
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DShortcutLauncherMain.java53 ab.addTab(ab.newTab().setText("App list").setTabListener(mTabListener)); in onCreate()
54 ab.addTab(ab.newTab().setText("Pinned shortcuts").setTabListener(mTabListener)); in onCreate()
56 ab.addTab(ab.newTab().setText("Create shortcuts").setTabListener(mTabListener)); in onCreate()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/
DMainActivity.java42 CompatTab photosTab = tabHelper.newTab("photos") in onCreate()
48 CompatTab videosTab = tabHelper.newTab("videos") in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DVideoPlayerActivity.java202 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this)); in onCreate()
203 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this)); in onCreate()
204 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this)); in onCreate()
DContentBrowserNavActivity.java180 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this)); in onCreate()
181 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this)); in onCreate()
182 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this)); in onCreate()
DContentBrowserActivity.java178 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this)); in onCreate()
179 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this)); in onCreate()
180 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this)); in onCreate()
/development/samples/browseable/HorizontalPaging/src/com.example.android.horizontalpaging/
DMainActivity.java89 actionBar.newTab() in onCreate()
/development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/
DMainActivity.java87 actionBar.newTab() in onCreate()
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DNewsReaderActivity.java146 actionBar.addTab(actionBar.newTab().setText(CATEGORIES[i]).setTabListener(handler)); in setUpActionBar()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DTitlesFragment.java95 bar.addTab(bar.newTab().setText(Directory.getCategory(i).getName()) in onActivityCreated()