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

12 3 4 5

  /frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
TabLayoutCustomItemsUsage.java 45 TabLayout.Tab tab = tabLayout.newTab(); local
47 tabLayout.addTab(tab);
48 tab.setCustomView(R.layout.design_tab_custom);
  /frameworks/base/core/java/com/android/internal/app/
WindowDecorActionBar.java 266 // Switch tab layout configuration if needed
526 private void configureTab(Tab tab, int position) {
527 final TabImpl tabi = (TabImpl) tab;
531 throw new IllegalStateException("Action Bar Tab must have a Callback");
544 public void addTab(Tab tab) {
545 addTab(tab, mTabs.isEmpty());
549 public void addTab(Tab tab, int position)
    [all...]
ToolbarActionBar.java 322 public Tab newTab() {
328 public void addTab(Tab tab) {
334 public void addTab(Tab tab, boolean setSelected) {
340 public void addTab(Tab tab, int position) {
346 public void addTab(Tab tab, int position, boolean setSelected) {
352 public void removeTab(Tab tab)
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
WindowDecorActionBar.java 264 // Switch tab layout configuration if needed
543 private void configureTab(Tab tab, int position) {
544 final TabImpl tabi = (TabImpl) tab;
548 throw new IllegalStateException("Action Bar Tab must have a Callback");
561 public void addTab(Tab tab) {
562 addTab(tab, mTabs.isEmpty());
566 public void addTab(Tab tab, int position)
    [all...]
ToolbarActionBar.java 327 public Tab newTab() {
333 public void addTab(Tab tab) {
339 public void addTab(Tab tab, boolean setSelected) {
345 public void addTab(Tab tab, int position) {
351 public void addTab(Tab tab, int position, boolean setSelected) {
357 public void removeTab(Tab tab)
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
ScrollingTabContainerView.java 45 * This widget implements the dynamic action bar tab behavior that can change
123 // Recenter the tab display if we're at a new (scrollable) size.
279 private TabView createTabView(Context context, ActionBar.Tab tab, boolean forAdapter) {
280 final TabView tabView = new TabView(context, tab, forAdapter);
296 public void addTab(ActionBar.Tab tab, boolean setSelected) {
297 TabView tabView = createTabView(mContext, tab, false);
311 public void addTab(ActionBar.Tab tab, int position, boolean setSelected)
411 final ActionBar.Tab tab = mTab; local
    [all...]
  /external/clang/unittests/Format/
FormatTest.cpp     [all...]
  /developers/build/prebuilts/gradle/HorizontalPaging/Application/src/main/java/com/example/android/horizontalpaging/
MainActivity.java 55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().)
71 // When swiping between different sections, select the corresponding tab. We can also use
72 // ActionBar.Tab#select() to do this if we have a reference to the Tab.
83 // For each of the sections in the app, add a tab to the action bar.
85 // Create a tab with text corresponding to the page title defined by the adapter. Also
87 // callback (listener) for when this tab is selected.
97 * Update {@link ViewPager} after a tab has been selected in the ActionBar.
99 * @param tab Tab that was selected
    [all...]
  /developers/samples/android/ui/views/HorizontalPaging/Application/src/main/java/com/example/android/horizontalpaging/
MainActivity.java 55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().)
71 // When swiping between different sections, select the corresponding tab. We can also use
72 // ActionBar.Tab#select() to do this if we have a reference to the Tab.
83 // For each of the sections in the app, add a tab to the action bar.
85 // Create a tab with text corresponding to the page title defined by the adapter. Also
87 // callback (listener) for when this tab is selected.
97 * Update {@link ViewPager} after a tab has been selected in the ActionBar.
99 * @param tab Tab that was selected
    [all...]
  /development/samples/browseable/HorizontalPaging/src/com.example.android.horizontalpaging/
MainActivity.java 55 // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().)
71 // When swiping between different sections, select the corresponding tab. We can also use
72 // ActionBar.Tab#select() to do this if we have a reference to the Tab.
83 // For each of the sections in the app, add a tab to the action bar.
85 // Create a tab with text corresponding to the page title defined by the adapter. Also
87 // callback (listener) for when this tab is selected.
97 * Update {@link ViewPager} after a tab has been selected in the ActionBar.
99 * @param tab Tab that was selected
    [all...]
  /development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/
MainActivity.java 74 // When swiping between different app sections, select the corresponding tab.
75 // We can also use ActionBar.Tab#select() to do this if we have a reference to the
76 // Tab.
81 // For each of the sections in the app, add a tab to the action bar.
83 // Create a tab with text corresponding to the page title defined by the adapter.
85 // listener for when this tab is selected.
94 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {
98 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction)
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
ScrollingTabContainerView.java 52 * This widget implements the dynamic action bar tab behavior that can change across different
135 // Recenter the tab display if we're at a new (scrollable) size.
292 TabView createTabView(ActionBar.Tab tab, boolean forAdapter) {
293 final TabView tabView = new TabView(getContext(), tab, forAdapter);
309 public void addTab(ActionBar.Tab tab, boolean setSelected) {
310 TabView tabView = createTabView(tab, false);
324 public void addTab(ActionBar.Tab tab, int position, boolean setSelected)
449 final ActionBar.Tab tab = mTab; local
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/
FragmentTabPagerAdapter.java 47 private final Map<UiDataModel.Tab, DeskClockFragment> mFragmentCache;
71 // Fetch the tab the UiDataModel reports for the position.
72 final UiDataModel.Tab tab = UiDataModel.getUiDataModel().getTabAt(position); local
75 DeskClockFragment fragment = mFragmentCache.get(tab);
83 fragment = (DeskClockFragment) mFragmentManager.findFragmentByTag(tab.name());
86 mFragmentCache.put(tab, fragment);
91 final String fragmentClassName = tab.getFragmentClassName();
94 mFragmentCache.put(tab, fragment);
112 final UiDataModel.Tab tab = UiDataModel.getUiDataModel().getTabAt(position) local
    [all...]
DropShadowController.java 28 import com.android.deskclock.uidata.UiDataModel.Tab;
51 /** Tab bar's hairline, which is hidden whenever the drop shadow is displayed. */
61 * @param uiDataModel models the vertical scrolling state of the application's selected tab
62 * @param hairlineView at the bottom of the tab bar to be hidden or shown when the drop shadow
166 public void selectedTabScrollToTopChanged(Tab selectedTab, boolean scrolledToTop) {
DeskClock.java 90 /** Updates the user interface to reflect the selected tab from the backing model. */
124 /** The container that stores the tab headers. */
170 final UiDataModel.Tab tabModel = UiDataModel.getUiDataModel().getTab(i);
173 final TabLayout.Tab tab = mTabLayout.newTab() local
179 tab.setText(labelResId);
180 tab.setCustomView(R.layout.tab_item);
183 final TextView text = (TextView) tab.getCustomView()
188 final Drawable icon = tab.getIcon();
191 tab.setIcon(null)
474 final TabLayout.Tab tab = mTabLayout.getTabAt(i); local
    [all...]
HandleShortcuts.java 27 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
45 // Open DeskClock positioned on the stopwatch tab.
54 // Open DeskClock positioned on the stopwatch tab.
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ActionBarDisplayOptions.java 21 import android.app.ActionBar.Tab;
63 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this));
64 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this));
65 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this));
141 public void onTabSelected(Tab tab, FragmentTransaction ft) {
145 public void onTabUnselected(Tab tab, FragmentTransaction ft) {
149 public void onTabReselected(Tab tab, FragmentTransaction ft)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/view/
ContentBrowserActivity.java 20 import android.app.ActionBar.Tab;
178 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this));
179 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this));
180 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this));
254 public void onTabSelected(Tab tab, FragmentTransaction ft) {
258 public void onTabUnselected(Tab tab, FragmentTransaction ft) {
262 public void onTabReselected(Tab tab, FragmentTransaction ft)
    [all...]
ContentBrowserNavActivity.java 20 import android.app.ActionBar.Tab;
180 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this));
181 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this));
182 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this));
256 public void onTabSelected(Tab tab, FragmentTransaction ft) {
260 public void onTabUnselected(Tab tab, FragmentTransaction ft) {
264 public void onTabReselected(Tab tab, FragmentTransaction ft)
    [all...]
VideoPlayerActivity.java 20 import android.app.ActionBar.Tab;
202 bar.addTab(bar.newTab().setText("Tab 1").setTabListener(this));
203 bar.addTab(bar.newTab().setText("Tab 2").setTabListener(this));
204 bar.addTab(bar.newTab().setText("Tab 3").setTabListener(this));
271 public void onTabSelected(Tab tab, FragmentTransaction ft) {
275 public void onTabUnselected(Tab tab, FragmentTransaction ft) {
279 public void onTabReselected(Tab tab, FragmentTransaction ft)
    [all...]
  /development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
TabHelperHoneycomb.java 46 public void addTab(CompatTab tab) {
47 String tag = tab.getTag();
49 // Check to see if we already have a fragment for this tab, probably
51 // initial state is that a tab isn't shown.
54 tab.setFragment(fragment);
62 if (tab.getCallback() == null) {
66 // We know tab is a CompatTabHoneycomb instance, so its
67 // native tab object is an ActionBar.Tab.
68 mActionBar.addTab((ActionBar.Tab) tab.getTab())
    [all...]
  /external/pdfium/third_party/lcms/src/
cmslut.c 500 if (Data ->Tab.T) {
503 NewElem ->Tab.TFloat = (cmsFloat32Number*) _cmsDupMem(mpe ->ContextID, Data ->Tab.TFloat, Data ->nEntries * sizeof (cmsFloat32Number));
504 if (NewElem ->Tab.TFloat == NULL)
507 NewElem ->Tab.T = (cmsUInt16Number*) _cmsDupMem(mpe ->ContextID, Data ->Tab.T, Data ->nEntries * sizeof (cmsUInt16Number));
508 if (NewElem ->Tab.T == NULL)
517 NewElem ->Tab.T,
522 if (NewElem->Tab.T)
524 _cmsFree(mpe ->ContextID, NewElem -> Tab.T)
    [all...]
  /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
FrameworkActionBarWrapper.java 35 import android.app.ActionBar.Tab;
346 @SuppressWarnings("deprecation") // For Tab
349 Tab tab = mActionBar.newTab().setText("Tab" + i).setTabListener(new TabListener() { local
351 public void onTabUnselected(Tab t, FragmentTransaction ft) {
355 public void onTabSelected(Tab t, FragmentTransaction ft) {
359 public void onTabReselected(Tab t, FragmentTransaction ft) {
363 mActionBar.addTab(tab);
  /packages/apps/Settings/src/com/android/settings/
TrustedCredentialsSettings.java 99 private enum Tab {
120 private Tab(String tag, int label, int view, int progress, int contentView,
222 addTab(Tab.SYSTEM);
223 // TODO add Install button on Tab.USER to go to CertInstaller like KeyChainActivity
224 addTab(Tab.USER);
227 mTabHost.setCurrentTabByTag(Tab.USER.mTag);
275 private void addTab(Tab tab) {
276 TabHost.TabSpec systemSpec = mTabHost.newTabSpec(tab.mTag)
277 .setIndicator(getActivity().getString(tab.mLabel)
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
StopwatchService.java 29 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
42 // shows the tab with the stopwatch
66 // Open DeskClock positioned on the stopwatch tab.

Completed in 9466 milliseconds

12 3 4 5