HomeSort by relevance Sort by last modified time
    Searched refs:Tab (Results 1 - 25 of 121) sorted by null

1 2 3 4 5

  /packages/apps/DeskClock/src/com/android/deskclock/uidata/
TabListener.java 19 import com.android.deskclock.uidata.UiDataModel.Tab;
22 * The interface through which interested parties are notified of changes to the selected tab.
27 * @param oldSelectedTab an enumerated value indicating the prior selected tab
28 * @param newSelectedTab an enumerated value indicating the newly selected tab
30 void selectedTabChanged(Tab oldSelectedTab, Tab newSelectedTab);
TabScrollListener.java 19 import com.android.deskclock.uidata.UiDataModel.Tab;
23 * position of the selected tab. Callbacks to listener occur when any of these events occur:
26 * <li>the vertical scroll position of the selected tab is now scrolled to the top</li>
27 * <li>the vertical scroll position of the selected tab is no longer scrolled to the top</li>
28 * <li>the selected tab changed and the new tab scroll state does not match the prior tab</li>
34 * @param selectedTab an enumerated value indicating the current selected tab
35 * @param scrolledToTop indicates whether the current selected tab is scrolled to its top
37 void selectedTabScrollToTopChanged(Tab selectedTab, boolean scrolledToTop)
    [all...]
TabDAO.java 21 import static com.android.deskclock.uidata.UiDataModel.Tab;
24 * This class encapsulates the storage of tab data in {@link SharedPreferences}.
28 /** Key to a preference that stores the ordinal of the selected tab. */
34 * @return an enumerated value indicating the currently selected primary tab
36 static Tab getSelectedTab(SharedPreferences prefs) {
37 final int ordinal = prefs.getInt(KEY_SELECTED_TAB, Tab.CLOCKS.ordinal());
38 return Tab.values()[ordinal];
42 * @param tab an enumerated value indicating the newly selected primary tab
44 static void setSelectedTab(SharedPreferences prefs, Tab tab)
    [all...]
TabModel.java 28 import static com.android.deskclock.uidata.UiDataModel.Tab;
31 * All tab data is accessed via this model.
37 /** The listeners to notify when the selected tab is changed. */
40 /** The listeners to notify when the vertical scroll state of the selected tab is changed. */
43 /** The scrolled-to-top state of each tab. */
44 private final boolean[] mTabScrolledToTop = new boolean[Tab.values().length];
46 /** An enumerated value indicating the currently selected tab. */
47 private Tab mSelectedTab;
55 // Selected tab
59 * @param tabListener to be notified when the selected tab change
    [all...]
UiDataModel.java 41 public enum Tab {
51 Tab(Class fragmentClass, @DrawableRes int iconResId, @StringRes int labelResId) {
71 /** The model from which tab data are fetched. */
218 * @param tabListener to be notified when the selected tab changes
226 * @param tabListener to no longer be notified when the selected tab changes
242 * @param ordinal the ordinal of the tab
243 * @return the tab at the given {@code ordinal}
245 public Tab getTab(int ordinal) {
251 * @param position the position of the tab in the user interface
252 * @return the tab at the given {@code ordinal
    [all...]
  /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...]
  /frameworks/base/core/java/android/app/
ActionBar.java 133 * Tab navigation mode. Instead of static title text this mode
617 * Create and return a new {@link Tab}.
618 * This tab will not be included in the action bar until it is added.
626 * @return A new Tab
628 * @see #addTab(Tab)
636 public abstract Tab newTab();
639 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.
640 * If this is the first tab to be added it will become the selected tab
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
ActionBar.java 128 * Tab navigation mode. Instead of static title text this mode
609 * Create and return a new {@link Tab}.
610 * This tab will not be included in the action bar until it is added.
612 * @return A new Tab
614 * @see #addTab(Tab)
622 public abstract Tab newTab();
625 * Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.
626 * If this is the first tab to be added it will become the selected tab
    [all...]
  /cts/tests/app/src/android/app/cts/
ActionBarTest.java 19 import android.app.ActionBar.Tab;
54 Tab t1 = createTab("Tab 1");
60 Tab t2 = createTab("Tab 2");
66 Tab t3 = createTab("Tab 3");
72 Tab t4 = createTab("Tab 2.5");
78 Tab t5 = createTab("Tab 0.5")
    [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) {
  /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...]
  /packages/apps/DeskClock/src/com/android/deskclock/
DeskClockFragment.java 27 import com.android.deskclock.uidata.UiDataModel.Tab;
31 /** The tab associated with this fragment. */
32 private final Tab mTab;
37 public DeskClockFragment(Tab tab) {
38 mTab = tab;
98 * @return {@code true} iff the currently selected tab displays this fragment
105 * Select the tab that displays this fragment.
112 * Updates the scrolling state in the {@link UiDataModel} for this tab.
114 * @param scrolledToTop {@code true} iff the vertical scroll position of this tab is at the to
    [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...]
  /development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
ShortcutLauncherMain.java 19 import android.app.ActionBar.Tab;
67 public void onTabSelected(Tab tab, FragmentTransaction ft) {
68 mPager.setCurrentItem(tab.getPosition());
72 public void onTabUnselected(Tab tab, FragmentTransaction ft) {
77 public void onTabReselected(Tab tab, FragmentTransaction ft) {
  /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) {
  /external/skqp/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/main/java/com/example/android/supportv13/app/
FragmentNestingPagerSupport.java 19 import android.app.ActionBar.Tab;
61 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0));
68 outState.putInt("tab", getActionBar().getSelectedNavigationIndex());
74 * trick. Normally a tab host has a simple API for supplying a View or
75 * Intent that each tab will show. This is not sufficient for switching
76 * between pages. So instead we make the content part of the tab host
78 * view to show as the tab content. It listens to changes in tabs, and takes
80 * tab changes.
108 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args)
    [all...]
FragmentNestingStatePagerSupport.java 19 import android.app.ActionBar.Tab;
61 bar.setSelectedNavigationItem(savedInstanceState.getInt("tab", 0));
68 outState.putInt("tab", getActionBar().getSelectedNavigationIndex());
74 * trick. Normally a tab host has a simple API for supplying a View or
75 * Intent that each tab will show. This is not sufficient for switching
76 * between pages. So instead we make the content part of the tab host
78 * view to show as the tab content. It listens to changes in tabs, and takes
80 * tab changes.
108 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...]
  /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/main/java/com/example/android/supportv7/app/
ActionBarDisplayOptions.java 26 import androidx.appcompat.app.ActionBar.Tab;
132 public void onTabSelected(Tab tab, FragmentTransaction ft) {
136 public void onTabUnselected(Tab tab, FragmentTransaction ft) {
140 public void onTabReselected(Tab tab, FragmentTransaction ft) {

Completed in 391 milliseconds

1 2 3 4 5