Home
last modified time | relevance | path

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

/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
DFragmentTabsFragmentSupport.java31 private FragmentTabHost mTabHost; field in FragmentTabsFragmentSupport
36 mTabHost = new FragmentTabHost(getActivity()); in onCreateView()
37 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.fragment1); in onCreateView()
39 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreateView()
41 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreateView()
43 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), in onCreateView()
45 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"), in onCreateView()
48 return mTabHost; in onCreateView()
54 mTabHost = null; in onDestroyView()
DFragmentNestingTabsSupport.java28 private FragmentTabHost mTabHost; field in FragmentNestingTabsSupport
34 mTabHost = new FragmentTabHost(this); in onCreate()
35 setContentView(mTabHost); in onCreate()
36 mTabHost.setup(this, getSupportFragmentManager(), R.id.fragment1); in onCreate()
38 mTabHost.addTab(mTabHost.newTabSpec("menus").setIndicator("Menus"), in onCreate()
40 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreate()
42 mTabHost.addTab(mTabHost.newTabSpec("stack").setIndicator("Stack"), in onCreate()
44 mTabHost.addTab(mTabHost.newTabSpec("tabs").setIndicator("Tabs"), in onCreate()
DFragmentTabs.java32 private FragmentTabHost mTabHost; field in FragmentTabs
39 mTabHost = (FragmentTabHost)findViewById(android.R.id.tabhost); in onCreate()
40 mTabHost.setup(this, getSupportFragmentManager(), R.id.realtabcontent); in onCreate()
42 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreate()
44 mTabHost.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreate()
46 mTabHost.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), in onCreate()
48 mTabHost.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"), in onCreate()
DFragmentTabsPager.java40 TabHost mTabHost; field in FragmentTabsPager
49 mTabHost = (TabHost)findViewById(android.R.id.tabhost); in onCreate()
50 mTabHost.setup(); in onCreate()
54 mTabsAdapter = new TabsAdapter(this, mTabHost, mViewPager); in onCreate()
56 mTabsAdapter.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreate()
58 mTabsAdapter.addTab(mTabHost.newTabSpec("contacts").setIndicator("Contacts"), in onCreate()
60 mTabsAdapter.addTab(mTabHost.newTabSpec("custom").setIndicator("Custom"), in onCreate()
62 mTabsAdapter.addTab(mTabHost.newTabSpec("throttle").setIndicator("Throttle"), in onCreate()
66 mTabHost.setCurrentTabByTag(savedInstanceState.getString("tab")); in onCreate()
73 outState.putString("tab", mTabHost.getCurrentTabTag()); in onSaveInstanceState()
[all …]
/frameworks/base/core/java/android/app/
DTabActivity.java38 private TabHost mTabHost; field in TabActivity
71 mTabHost.setCurrentTabByTag(cur); in onRestoreInstanceState()
73 if (mTabHost.getCurrentTab() < 0) { in onRestoreInstanceState()
75 mTabHost.setCurrentTabByTag(mDefaultTab); in onRestoreInstanceState()
77 mTabHost.setCurrentTab(mDefaultTabIndex); in onRestoreInstanceState()
88 if (mTabHost.getCurrentTab() == -1) { in onPostCreate()
89 mTabHost.setCurrentTab(0); in onPostCreate()
96 String currentTabTag = mTabHost.getCurrentTabTag(); in onSaveInstanceState()
111 mTabHost = findViewById(com.android.internal.R.id.tabhost); in onContentChanged()
113 if (mTabHost == null) { in onContentChanged()
[all …]
/frameworks/support/samples/Support13Demos/src/main/java/com/example/android/supportv13/app/
DFragmentTabsFragment.java29 private FragmentTabHost mTabHost; field in FragmentTabsFragment
34 mTabHost = new FragmentTabHost(getActivity()); in onCreateView()
35 mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.pager); in onCreateView()
37 mTabHost.addTab(mTabHost.newTabSpec("simple").setIndicator("Simple"), in onCreateView()
39 mTabHost.addTab(mTabHost.newTabSpec("array").setIndicator("Array"), in onCreateView()
41 mTabHost.addTab(mTabHost.newTabSpec("cursor").setIndicator("Cursor"), in onCreateView()
44 return mTabHost; in onCreateView()
50 mTabHost = null; in onDestroyView()