Home
last modified time | relevance | path

Searched refs:mTabHost (Results 1 – 7 of 7) sorted by relevance

/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentNestingTabsSupport.java26 private FragmentTabHost mTabHost; field in FragmentNestingTabsSupport
32 mTabHost = new FragmentTabHost(this); in onCreate()
33 setContentView(mTabHost); in onCreate()
34 mTabHost.setup(this, getSupportFragmentManager(), R.id.fragment1); in onCreate()
36 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()
DFragmentTabsFragmentSupport.java29 private FragmentTabHost mTabHost; field in FragmentTabsFragmentSupport
34 mTabHost = new FragmentTabHost(getActivity()); in onCreateView()
35 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.fragment1); in onCreateView()
37 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()
46 return mTabHost; in onCreateView()
52 mTabHost = null; in onDestroyView()
DFragmentTabs.java30 private FragmentTabHost mTabHost; field in FragmentTabs
37 mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost); in onCreate()
38 mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent); in onCreate()
40 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()
DFragmentTabsPager.java39 TabHost mTabHost; field in FragmentTabsPager
48 mTabHost = (TabHost)findViewById(android.R.id.tabhost); in onCreate()
49 mTabHost.setup(); in onCreate()
53 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager); in onCreate()
55 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()
65 mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab")); in onCreate()
72 outState.putString("tab", mTabHost.getCurrentTabTag()); in onSaveInstanceState()
[all …]
/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DFragmentTabsFragment.java28 private FragmentTabHost mTabHost; field in FragmentTabsFragment
33 mTabHost = new FragmentTabHost(getActivity()); in onCreateView()
34 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.pager); in onCreateView()
36 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()
43 return mTabHost; in onCreateView()
49 mTabHost = null; in onDestroyView()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DTabHelperEclair.java45 private TabHost mTabHost; field in TabHelperEclair
56 if (mTabHost == null) { in setUp()
57 mTabHost = (TabHost) mActivity.findViewById(android.R.id.tabhost); in setUp()
58 mTabHost.setup(); in setUp()
59 mTabHost.setOnTabChangedListener(this); in setUp()
69 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText(), tab.getIcon()); in addTab()
71 spec = mTabHost.newTabSpec(tag).setIndicator(tab.getText()); in addTab()
90 mTabHost.addTab(spec); in addTab()
127 outState.putString("tab", mTabHost.getCurrentTabTag()); in onSaveInstanceState()
133 mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab")); in onRestoreInstanceState()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentTabsFragment.java93 private TabHost mTabHost; field in FragmentTabsFragment.TabManager
134 if (mTabHost != null) { in handleCreateView()
137 mTabHost = (TabHost)root.findViewById(android.R.id.tabhost); in handleCreateView()
138 mTabHost.setup(); in handleCreateView()
139 mTabHost.setOnTabChangedListener(this); in handleCreateView()
140 return mTabHost; in handleCreateView()
148 mTabHost.addTab(tabSpec); in addTab()
155 mTabHost.setCurrentTabByTag(mCurrentTabTag); in handleViewStateRestored()
157 String currentTab = mTabHost.getCurrentTabTag(); in handleViewStateRestored()
193 mCurrentTabTag = mTabHost.getCurrentTabTag(); in handleDestroyView()
[all …]