/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
CompatActionBarNavHandler.java | 20 import android.app.ActionBar.Tab; 49 * Called by framework when a tab is selected. 54 public void onTabSelected(Tab tab, FragmentTransaction ft) { 56 mNavListener.onCategorySelected(tab.getPosition()); 72 * Called by framework when a tab is re-selected. That is, it was already selected and is 76 public void onTabReselected(Tab tab, FragmentTransaction ft) { 81 * Called by framework when a tab is unselected. Not used in our app. 84 public void onTabUnselected(Tab tab, FragmentTransaction ft) [all...] |
/developers/build/prebuilts/gradle/LNotifications/Application/src/main/java/com/example/android/lnotifications/ |
LNotificationActivity.java | 41 ActionBar.Tab tabHeadsUpNotification = actionBar.newTab().setText("Heads Up"); 42 ActionBar.Tab tabVisibilityMetadata = actionBar.newTab().setText("Visibility"); 43 ActionBar.Tab tabOtherMetadata = actionBar.newTab().setText("Others"); 56 * TabListener that replaces a Fragment when a tab is clicked. 66 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { 71 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { 76 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) [all...] |
/developers/samples/android/notification/LNotifications/Application/src/main/java/com/example/android/lnotifications/ |
LNotificationActivity.java | 41 ActionBar.Tab tabHeadsUpNotification = actionBar.newTab().setText("Heads Up"); 42 ActionBar.Tab tabVisibilityMetadata = actionBar.newTab().setText("Visibility"); 43 ActionBar.Tab tabOtherMetadata = actionBar.newTab().setText("Others"); 56 * TabListener that replaces a Fragment when a tab is clicked. 66 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { 71 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { 76 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) [all...] |
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/ |
LNotificationActivity.java | 41 ActionBar.Tab tabHeadsUpNotification = actionBar.newTab().setText("Heads Up"); 42 ActionBar.Tab tabVisibilityMetadata = actionBar.newTab().setText("Visibility"); 43 ActionBar.Tab tabOtherMetadata = actionBar.newTab().setText("Others"); 56 * TabListener that replaces a Fragment when a tab is clicked. 66 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { 71 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { 76 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) [all...] |
/cts/tests/app/src/android/app/cts/ |
ActionBarTest.java | 19 import android.app.ActionBar.Tab; 49 Tab t1 = createTab("Tab 1"); 55 Tab t2 = createTab("Tab 2"); 61 Tab t3 = createTab("Tab 3"); 67 Tab t4 = createTab("Tab 2.5"); 73 Tab t5 = createTab("Tab 0.5") [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
ActionBar.java | 127 * Tab navigation mode. Instead of static title text this mode 608 * Create and return a new {@link Tab}. 609 * This tab will not be included in the action bar until it is added. 611 * @return A new Tab 613 * @see #addTab(Tab) 621 public abstract Tab newTab(); 624 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list. 625 * If this is the first tab to be added it will become the selected tab [all...] |
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
CompatTabHoneycomb.java | 20 import android.app.ActionBar.Tab; 32 * The native tab object that this {@link CompatTab} acts as a proxy for. 34 ActionBar.Tab mTab; 83 public void onTabReselected(Tab tab, android.app.FragmentTransaction f) { 91 public void onTabSelected(Tab tab, android.app.FragmentTransaction f) { 99 public void onTabUnselected(Tab arg0, android.app.FragmentTransaction f) {
|
/frameworks/base/core/java/android/app/ |
ActionBar.java | 128 * Tab navigation mode. Instead of static title text this mode 606 * Create and return a new {@link Tab}. 607 * This tab will not be included in the action bar until it is added. 615 * @return A new Tab 617 * @see #addTab(Tab) 624 public abstract Tab newTab(); 627 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list. 628 * If this is the first tab to be added it will become the selected tab [all...] |
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
ShortcutLauncherMain.java | 19 import android.app.ActionBar.Tab; 59 public void onTabSelected(Tab tab, FragmentTransaction ft) { 60 mPager.setCurrentItem(tab.getPosition()); 64 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 69 public void onTabReselected(Tab tab, FragmentTransaction ft) {
|
/developers/build/prebuilts/gradle/ActionBarCompat-Styled/Application/src/main/java/com/example/android/actionbarcompat/styled/ |
MainActivity.java | 50 ab.addTab(ab.newTab().setText("Tab 1").setTabListener(this)); 51 ab.addTab(ab.newTab().setText("Tab 2").setTabListener(this)); 52 ab.addTab(ab.newTab().setText("Tab 3").setTabListener(this)); 65 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { 66 // This is called when a tab is selected. 71 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { 72 // This is called when a previously selected tab is unselected. 77 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) [all...] |
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-Styled/Application/src/main/java/com/example/android/actionbarcompat/styled/ |
MainActivity.java | 50 ab.addTab(ab.newTab().setText("Tab 1").setTabListener(this)); 51 ab.addTab(ab.newTab().setText("Tab 2").setTabListener(this)); 52 ab.addTab(ab.newTab().setText("Tab 3").setTabListener(this)); 65 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { 66 // This is called when a tab is selected. 71 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { 72 // This is called when a previously selected tab is unselected. 77 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) [all...] |
/development/samples/browseable/ActionBarCompat-Styled/src/com.example.android.actionbarcompat.styled/ |
MainActivity.java | 50 ab.addTab(ab.newTab().setText("Tab 1").setTabListener(this)); 51 ab.addTab(ab.newTab().setText("Tab 2").setTabListener(this)); 52 ab.addTab(ab.newTab().setText("Tab 3").setTabListener(this)); 65 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { 66 // This is called when a tab is selected. 71 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) { 72 // This is called when a previously selected tab is unselected. 77 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
TabLayoutTest.java | 54 // Tab 0 has text, but no icon or custom view 55 TabLayout.Tab tab = tabLayout.getTabAt(0); local 57 tab.getText()); 58 assertNull(tab.getIcon()); 59 assertNull(tab.getCustomView()); 61 // Tab 1 has an icon, but no text or custom view 62 tab = tabLayout.getTabAt(1); 63 assertNull(tab.getText()); 64 assertNotNull(tab.getIcon()) 97 final TabLayout.Tab tab = tabLayout.newTab(); local 117 final TabLayout.Tab tab = tabLayout.newTab(); local 184 final TabLayout.Tab tab = tabLayout.getTabAt(i); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActionBarTabs.java | 21 import android.app.ActionBar.Tab; 47 final String text = "Tab " + tabCount; 80 * to it, it will be committed at the end of the full tab switch operation. 81 * This lets tab switches be atomic without the app needing to track 96 public void onTabSelected(Tab tab, FragmentTransaction ft) { 100 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 104 public void onTabReselected(Tab tab, FragmentTransaction ft) [all...] |
FragmentNestingTabs.java | 20 import android.app.ActionBar.Tab; 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 87 // Check to see if we already have a fragment for this tab, probably 89 // initial state is that a tab isn't shown. 98 public void onTabSelected(Tab tab, FragmentTransaction ft) { 107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 113 public void onTabReselected(Tab tab, FragmentTransaction ft) [all...] |
FragmentTabs.java | 22 import android.app.ActionBar.Tab; 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 87 // Check to see if we already have a fragment for this tab, probably 89 // initial state is that a tab isn't shown. 98 public void onTabSelected(Tab tab, FragmentTransaction ft) { 107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 113 public void onTabReselected(Tab tab, FragmentTransaction ft) [all...] |
/external/skia/debugger/QT/ |
SkInspectorWidget.h | 26 The InspectorWidget contains the overview and details tab. These contain 51 Sets the text in tab at the specified index. 68 class Tab : public QWidget { 74 Tab(const char* name) {
|
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/ |
ActionBarTabsPager.java | 23 import android.app.ActionBar.Tab; 62 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 69 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 75 * trick. Normally a tab host has a simple API for supplying a View or 76 * Intent that each tab will show. This is not sufficient for switching 77 * between pages. So instead we make the content part of the tab host 79 * view to show as the tab content. It listens to changes in tabs, and takes 81 * tab changes. 109 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) [all...] |
FragmentNestingPagerSupport.java | 23 import android.app.ActionBar.Tab; 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 73 * trick. Normally a tab host has a simple API for supplying a View or 74 * Intent that each tab will show. This is not sufficient for switching 75 * between pages. So instead we make the content part of the tab host 77 * view to show as the tab content. It listens to changes in tabs, and takes 79 * tab changes. 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) [all...] |
FragmentNestingStatePagerSupport.java | 23 import android.app.ActionBar.Tab; 60 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 67 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 73 * trick. Normally a tab host has a simple API for supplying a View or 74 * Intent that each tab will show. This is not sufficient for switching 75 * between pages. So instead we make the content part of the tab host 77 * view to show as the tab content. It listens to changes in tabs, and takes 79 * tab changes. 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
GalleryActivity.java | 20 import android.app.ActionBar.Tab; 62 ab.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0)); 69 outState.putInt("tab", getActionBar().getSelectedNavigationIndex()); 121 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { 123 tab.setTag(info); 124 tab.setTabListener(this); 126 mActionBar.addTab(tab); 163 public void onTabSelected(Tab tab, FragmentTransaction ft) [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
TabLayout.java | 80 * done through {@link Tab} instances. You create tabs via {@link #newTab()}. From there you can 81 * change the tab's label or icon via {@link Tab#setText(int)} and {@link Tab#setIcon(int)} 82 * respectively. To display the tab, you need to add it to the layout via one of the 83 * {@link #addTab(Tab)} methods. For example: 86 * tabLayout.addTab(tabLayout.newTab().setText("Tab 1")); 87 * tabLayout.addTab(tabLayout.newTab().setText("Tab 2")); 88 * tabLayout.addTab(tabLayout.newTab().setText("Tab 3")); 91 * notified when any tab's selection state has been changed 486 final Tab tab = newTab(); local 562 Tab tab = sTabPool.acquire(); local 647 final Tab tab = i.next(); local 1646 final Tab tab = mTab; local 2069 Tab tab = mTabs.get(i); local [all...] |
/external/fec/ |
rstest.c | 22 } Tab[] = { 53 for(i=0;Tab[i].symsize != 0;i++){ 56 nn = (1<<Tab[i].symsize) - 1; 57 kk = nn - Tab[i].nroots; 59 if(Tab[i].symsize <= 8) 60 exercise_char(&Tab[i]); 62 exercise_int(&Tab[i]);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarDisplayOptions.java | 21 import android.support.v7.app.ActionBar.Tab; 131 public void onTabSelected(Tab tab, FragmentTransaction ft) { 135 public void onTabUnselected(Tab tab, FragmentTransaction ft) { 139 public void onTabReselected(Tab tab, FragmentTransaction ft) {
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
TabLayoutCustomItemsUsage.java | 43 TabLayout.Tab tab = tabLayout.newTab(); local 45 tabLayout.addTab(tab); 46 tab.setCustomView(R.layout.design_tab_custom);
|