Home
last modified time | relevance | path

Searched refs:CompatTab (Results 1 – 8 of 8) sorted by relevance

/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DCompatTab.java28 public abstract class CompatTab { class
32 protected CompatTab(FragmentActivity activity, String tag) { in CompatTab() method in CompatTab
37 public abstract CompatTab setText(int resId); in setText()
38 public abstract CompatTab setIcon(int resId); in setIcon()
39 public abstract CompatTab setTabListener(CompatTabListener callback); in setTabListener()
40 public abstract CompatTab setFragment(Fragment fragment); in setFragment()
DCompatTabEclair.java26 public class CompatTabEclair extends CompatTab {
37 public CompatTab setText(int resId) { in setText()
43 public CompatTab setIcon(int resId) { in setIcon()
49 public CompatTab setTabListener(CompatTabListener callback) { in setTabListener()
55 public CompatTab setFragment(Fragment fragment) { in setFragment()
DCompatTabListener.java29 public void onTabSelected(CompatTab tab, FragmentTransaction ft); in onTabSelected()
35 public void onTabUnselected(CompatTab tab, FragmentTransaction ft); in onTabUnselected()
41 public void onTabReselected(CompatTab tab, FragmentTransaction ft); in onTabReselected()
DCompatTabHoneycomb.java29 public class CompatTabHoneycomb extends CompatTab implements ActionBar.TabListener {
44 public CompatTab setText(int resId) { in setText()
50 public CompatTab setIcon(int resId) { in setIcon()
56 public CompatTab setTabListener(CompatTabListener callback) { in setTabListener()
107 public CompatTab setFragment(Fragment fragment) { in setFragment()
DTabHelperEclair.java44 private final HashMap<String, CompatTab> mTabs = new HashMap<String, CompatTab>();
47 CompatTab mLastTab;
64 public void addTab(CompatTab tab) { in addTab()
99 CompatTab newTab = mTabs.get(tabId); in onTabChanged()
DTabHelper.java65 public CompatTab newTab(String tag) { in newTab()
73 public abstract void addTab(CompatTab tab); in addTab()
DTabHelperHoneycomb.java46 public void addTab(CompatTab tab) { in addTab()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/
DMainActivity.java19 import com.example.android.tabcompat.lib.CompatTab;
42 CompatTab photosTab = tabHelper.newTab("photos") in onCreate()
48 CompatTab videosTab = tabHelper.newTab("videos") in onCreate()
77 public void onTabSelected(CompatTab tab, FragmentTransaction ft) { in onTabSelected()
92 public void onTabUnselected(CompatTab tab, FragmentTransaction ft) { in onTabUnselected()
101 public void onTabReselected(CompatTab tab, FragmentTransaction ft) { in onTabReselected()