Home
last modified time | relevance | path

Searched refs:addTab (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentNestingTabsSupport.java36 mTabHost.addTab(mTabHost.newTabSpec("menus").setIndicator("Menus"), in onCreate()
38 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreate()
40 mTabHost.addTab(mTabHost.newTabSpec("stack").setIndicator("Stack"), in onCreate()
42 mTabHost.addTab(mTabHost.newTabSpec("tabs").setIndicator("Tabs"), in onCreate()
DFragmentTabs.java40 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreate()
42 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreate()
44 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), in onCreate()
46 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"), in onCreate()
DFragmentTabsFragmentSupport.java37 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreateView()
39 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreateView()
41 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), in onCreateView()
43 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"), in onCreateView()
DFragmentTabsPager.java55 mTabsAdapter.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreate()
57 mTabsAdapter.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreate()
59 mTabsAdapter.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), in onCreate()
61 mTabsAdapter.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"), in onCreate()
131 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) { in addTab() method in FragmentTabsPager.TabsAdapter
137 mTabHost.addTab(tabSpec); in addTab()
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/
DFragmentNestingPagerSupport.java50 mTabsAdapter.addTab(bar.newTab().setText("Simple"), in onCreate()
52 mTabsAdapter.addTab(bar.newTab().setText("List"), in onCreate()
54 mTabsAdapter.addTab(bar.newTab().setText("Cursor"), in onCreate()
56 mTabsAdapter.addTab(bar.newTab().setText("Tabs"), in onCreate()
107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() method in FragmentNestingPagerSupport.TabsAdapter
112 mActionBar.addTab(tab); in addTab()
DFragmentNestingStatePagerSupport.java50 mTabsAdapter.addTab(bar.newTab().setText("Simple"), in onCreate()
52 mTabsAdapter.addTab(bar.newTab().setText("List"), in onCreate()
54 mTabsAdapter.addTab(bar.newTab().setText("Cursor"), in onCreate()
56 mTabsAdapter.addTab(bar.newTab().setText("Tabs"), in onCreate()
107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() method in FragmentNestingStatePagerSupport.TabsAdapter
112 mActionBar.addTab(tab); in addTab()
DActionBarTabsPager.java54 mTabsAdapter.addTab(bar.newTab().setText("Simple"), in onCreate()
56 mTabsAdapter.addTab(bar.newTab().setText("List"), in onCreate()
58 mTabsAdapter.addTab(bar.newTab().setText("Cursor"), in onCreate()
109 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab() method in ActionBarTabsPager.TabsAdapter
114 mActionBar.addTab(tab); in addTab()
DFragmentTabsFragment.java36 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreateView()
38 mTabHost.addTab(mTabHost.newTabSpec("array").setIndicator("Array"), in onCreateView()
40 mTabHost.addTab(mTabHost.newTabSpec("cursor").setIndicator("Cursor"), in onCreateView()
/frameworks/support/design/tests/src/android/support/design/widget/
DTabLayoutTest.java99 tabLayout.addTab(tab); in testTabWithCustomLayoutSelection1()
118 tabLayout.addTab(tab); in testTabWithCustomLayoutSelection2()
138 tabs.addTab(tab1); in testMultipleTabsWithCustomLayoutSelection1()
142 tabs.addTab(tab2, true); in testMultipleTabsWithCustomLayoutSelection1()
146 tabs.addTab(tab3); in testMultipleTabsWithCustomLayoutSelection1()
163 tabs.addTab(tab1); in testMultipleTabsWithCustomLayoutSelection2()
167 tabs.addTab(tab2, true); in testMultipleTabsWithCustomLayoutSelection2()
171 tabs.addTab(tab3); in testMultipleTabsWithCustomLayoutSelection2()
DTabLayoutPoolingTest.java52 tabLayout2.addTab(tabLayout2.newTab()); in testUsingTabsFromOtherInstance()
53 tabLayout2.addTab(tabLayout2.newTab()); in testUsingTabsFromOtherInstance()
54 tabLayout2.addTab(tabLayout2.newTab()); in testUsingTabsFromOtherInstance()
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DMediaDump.java48 tab.addTab(videoDumpTab); in onCreate()
57 tab.addTab(rgbPlayerTab); in onCreate()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBar.java630 public abstract void addTab(Tab tab); in addTab() method in ActionBar
644 public abstract void addTab(Tab tab, boolean setSelected); in addTab() method in ActionBar
660 public abstract void addTab(Tab tab, int position); in addTab() method in ActionBar
676 public abstract void addTab(Tab tab, int position, boolean setSelected); in addTab() method in ActionBar
DWindowDecorActionBar.java538 public void addTab(Tab tab) { in addTab() method in WindowDecorActionBar
539 addTab(tab, mTabs.isEmpty()); in addTab()
543 public void addTab(Tab tab, int position) { in addTab() method in WindowDecorActionBar
544 addTab(tab, position, mTabs.isEmpty()); in addTab()
548 public void addTab(Tab tab, boolean setSelected) { in addTab() method in WindowDecorActionBar
550 mTabScrollView.addTab(tab, setSelected); in addTab()
558 public void addTab(Tab tab, int position, boolean setSelected) { in addTab() method in WindowDecorActionBar
560 mTabScrollView.addTab(tab, position, setSelected); in addTab()
DToolbarActionBar.java337 public void addTab(Tab tab) { in addTab() method in ToolbarActionBar
343 public void addTab(Tab tab, boolean setSelected) { in addTab() method in ToolbarActionBar
349 public void addTab(Tab tab, int position) { in addTab() method in ToolbarActionBar
355 public void addTab(Tab tab, int position, boolean setSelected) { in addTab() method in ToolbarActionBar
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
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()
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DTabLayoutUsage.java70 public void addTab(View view) { in addTab() method in TabLayoutUsage
72 mPagerAdapter.addTab(cheese); in addTab()
140 public void addTab(String title) { in addTab() method in TabLayoutUsage.CheesePagerAdapter
DTabLayoutPreselectedUsage.java63 mPagerAdapter.addTab(Cheeses.sCheeseStrings[i]); in onCreate()
128 public void addTab(String title) { in addTab() method in TabLayoutPreselectedUsage.CheesePagerAdapter
DTabLayoutCustomItemsUsage.java45 tabLayout.addTab(tab); in onCreate()
/frameworks/base/core/java/android/app/
DActionBar.java637 public abstract void addTab(Tab tab); in addTab() method in ActionBar
650 public abstract void addTab(Tab tab, boolean setSelected); in addTab() method in ActionBar
665 public abstract void addTab(Tab tab, int position); in addTab() method in ActionBar
680 public abstract void addTab(Tab tab, int position, boolean setSelected); in addTab() method in ActionBar
/frameworks/base/core/java/com/android/internal/app/
DToolbarActionBar.java331 public void addTab(Tab tab) { in addTab() method in ToolbarActionBar
337 public void addTab(Tab tab, boolean setSelected) { in addTab() method in ToolbarActionBar
343 public void addTab(Tab tab, int position) { in addTab() method in ToolbarActionBar
349 public void addTab(Tab tab, int position, boolean setSelected) { in addTab() method in ToolbarActionBar
DWindowDecorActionBar.java547 public void addTab(Tab tab) { in addTab() method in WindowDecorActionBar
548 addTab(tab, mTabs.isEmpty()); in addTab()
552 public void addTab(Tab tab, int position) { in addTab() method in WindowDecorActionBar
553 addTab(tab, position, mTabs.isEmpty()); in addTab()
557 public void addTab(Tab tab, boolean setSelected) { in addTab() method in WindowDecorActionBar
559 mTabScrollView.addTab(tab, setSelected); in addTab()
567 public void addTab(Tab tab, int position, boolean setSelected) { in addTab() method in WindowDecorActionBar
569 mTabScrollView.addTab(tab, position, setSelected); in addTab()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLaunchpadTabActivity.java40 th.addTab(ts); in onCreate()
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java437 public void addTab(@NonNull Tab tab) { in addTab() method in TabLayout
438 addTab(tab, mTabs.isEmpty()); in addTab()
448 public void addTab(@NonNull Tab tab, int position) { in addTab() method in TabLayout
449 addTab(tab, position, mTabs.isEmpty()); in addTab()
458 public void addTab(@NonNull Tab tab, boolean setSelected) { in addTab() method in TabLayout
459 addTab(tab, mTabs.size(), setSelected); in addTab()
469 public void addTab(@NonNull Tab tab, int position, boolean setSelected) { in addTab() method in TabLayout
495 addTab(tab); in addTabFromItemView()
904 addTab(newTab().setText(mPagerAdapter.getPageTitle(i)), false); in populateFromPagerAdapter()
/frameworks/support/v13/java/android/support/v13/app/
DFragmentTabHost.java220 public void addTab(TabHost.TabSpec tabSpec, Class<?> clss, Bundle args) { in addTab() method in FragmentTabHost
239 addTab(tabSpec); in addTab()
/frameworks/base/docs/html/training/backward-compatible-ui/
Dabstracting.jd95 …tionBar#newTab ActionBar.newTab()} and {@link android.app.ActionBar#addTab ActionBar.addTab()}:</p>
105 public abstract void addTab(CompatTab tab);

12