/frameworks/support/design/tests/src/android/support/design/widget/ |
D | TabLayoutTest.java | 134 final TabLayout tabs = (TabLayout) inflater.inflate(R.layout.design_tabs, null); in testMultipleTabsWithCustomLayoutSelection1() local 135 tabs.addOnTabSelectedListener(mockListener); in testMultipleTabsWithCustomLayoutSelection1() 137 final TabLayout.Tab tab1 = tabs.newTab().setCustomView(R.layout.design_tab_item_custom); in testMultipleTabsWithCustomLayoutSelection1() 138 tabs.addTab(tab1); in testMultipleTabsWithCustomLayoutSelection1() 141 final TabLayout.Tab tab2 = tabs.newTab().setCustomView(R.layout.design_tab_item_custom); in testMultipleTabsWithCustomLayoutSelection1() 142 tabs.addTab(tab2, true); in testMultipleTabsWithCustomLayoutSelection1() 145 final TabLayout.Tab tab3 = tabs.newTab().setCustomView(R.layout.design_tab_item_custom); in testMultipleTabsWithCustomLayoutSelection1() 146 tabs.addTab(tab3); in testMultipleTabsWithCustomLayoutSelection1() 149 assertEquals("Second tab is selected", 1, tabs.getSelectedTabPosition()); in testMultipleTabsWithCustomLayoutSelection1() 150 assertTabCustomViewSelected(tabs); in testMultipleTabsWithCustomLayoutSelection1() [all …]
|
D | TabLayoutWithViewPagerTest.java | 177 mTabLayout = (TabLayout) activity.findViewById(R.id.tabs); in setUp() 193 onView(withId(R.id.tabs)).perform(setupWithViewPager(mViewPager)); in setupTabLayoutWithViewPager() 243 onView(withId(R.id.tabs)).perform(TabLayoutActions.selectTab(i)); in verifyTabLayoutSelection() 252 onView(withId(R.id.tabs)).perform(TabLayoutActions.selectTab(i)); in verifyTabLayoutSelection() 324 onView(withId(R.id.tabs)).perform(setupWithViewPager(mViewPager, false)); in testAdapterContentChangeWithAutoRefreshDisabled() 346 onView(withId(R.id.tabs)).perform(setupWithViewPager(mViewPager, false)); in testBasicAutoRefreshDisabled() 362 onView(withId(R.id.tabs)).perform(setupWithViewPager(mViewPager, false)); in testBasicAutoRefreshDisabled() 389 onView(withId(R.id.tabs)).perform(setupWithViewPager(mViewPager)); in testAdapterChange() 414 onView(withId(R.id.tabs)).perform(setupWithViewPager(mViewPager)); in testFixedTabMode() 417 onView(withId(R.id.tabs)).perform(TabLayoutActions.setTabMode(TabLayout.MODE_FIXED)); in testFixedTabMode() [all …]
|
D | AppBarWithToolbarAndTabsTest.java | 41 mTabLayout = (TabLayout) mAppBar.findViewById(R.id.tabs); in configureContent() 44 onView(withId(R.id.tabs)).perform(addTabs(tabTitles)); in configureContent()
|
/frameworks/base/docs/html/training/implementing-navigation/ |
D | lateral.jd | 2 page.tags=viewpager,horizontal,paging,swipe view,tabs 14 <li><a href="#tabs">Add Tabs to the Action Bar</a></li> 15 <li><a href="#swipe-tabs">Change Tabs with Swipe Views</a></li> 23 <li><a href="{@docRoot}design/building-blocks/tabs.html">Android Design: Tabs</a></li> 39 <p>Swipe views provide lateral navigation between sibling screens such as tabs with 41 you how to create a tab layout with swipe views for switching between tabs, or how to show 42 a title strip instead of tabs.</p> 164 sections show how you can add tabs to help facilitate navigation between pages.</p> 167 <h2 id="tabs">Add Tabs to the Action Bar</h2> 170 <a href="{@docRoot}design/building-blocks/tabs.html">tabs</a> offer users a familiar interface [all …]
|
D | index.jd | 45 implement navigation patterns with tabs, swipe views, and a navigation drawer. You should also 59 <dd>Learn how to implement tabs in the action bar and provide 60 horizontal paging (swipe views) to navigate between tabs.</dd>
|
/frameworks/base/docs/html/design/patterns/ |
D | app-structure.jd | 113 <h4>Fixed tabs</h4> 116 …tabs</em> display top-level views concurrently and make it easy to explore and switch between them… 117 <p><strong>Use tabs if</strong>:</p> 129 Default fixed tabs shown in Holo Dark & Light. 181 …tabs for top-level switching, don't add a drawer, even if your navigation branches are deep. In th… 191 <h4>Use tabs to combine category selection and data display</h4> 202 <p>If the categories are familiar, predictable, or closely related, use scrolling tabs (where not a… 203 items are in view simultaneously). Keep the number of scrolling tabs at a manageable level to 204 minimize navigational effort. Rule of thumb: no more than 5–7 tabs.</p> 208 The Play Store app uses tabs to simultaneously show category choice and content. To navigate [all …]
|
D | swipe-views.jd | 2 page.tags=viewpager,navigation,tabs 43 <h2 id="between-tabs">Swiping Between Tabs</h2> 62 <p>If your app uses action bar tabs, use swipe to navigate between the different views.</p> 68 <p>Use swipe to quickly navigate between detail views or tabs.</p>
|
/frameworks/base/docs/html/training/design-navigation/ |
D | descendant-lateral.jd | 20 <li><a href="#tabs">Tabs</a></li> 29 <li><a href="{@docRoot}design/building-blocks/tabs.html">Android Design: Tabs</a></li> 55 <p>Descendant and lateral navigation can be provided using lists, tabs, and other user interface pa… 103 <h2 id="tabs">Tabs</h2> 108 href="{@docRoot}design/building-blocks/tabs.html">Tabs</a> guide.</p> 111 <p>Using tabs is a very popular solution for lateral navigation. This pattern allows grouping of si… 114 <img src="{@docRoot}images/training/app-navigation-descendant-lateral-tabs.png" 115 …hone and tablet tab-based navigation interfaces with relevant screen map excerpt" id="figure-tabs"> 120 <p>Several best practices apply when using tabs. Tabs should be persistent across immediate related 128 appropriate. Lastly, and most importantly, <em>tabs should always run along the top of the [all …]
|
D | wireframing.jd | 39 …tabs. Note that we don't necessarily have to use horizontally arranged tabs; in some cases a drop-… 71 …al clutter or interactional issues (for example, if there are two rows of tabs on the screen). If … 119 …<li><a href="{@docRoot}guide/topics/ui/actionbar.html">Action Bar</a>: implement tabs, up navigati…
|
/frameworks/base/docs/html/training/backward-compatible-ui/ |
D | older-implementation.jd | 19 <li><a href="#older-tabs">Implement Tabs Using Older APIs</a></li> 47 <p>Action bar tabs can be implemented using a horizontal {@link android.widget.LinearLayout} contai… 62 <h2 id="older-tabs">Implement Tabs Using Older APIs</h2> 64 <p>To create an older implementation of action bar tabs, you can use a {@link android.widget.TabWid… 68 alt="Class diagram for the Eclair implementation of tabs." id="figure-classes"> 70 …s="img-caption"><strong>Figure 1.</strong> Class diagram for the Eclair implementation of tabs.</p>
|
D | new-implementation.jd | 18 <li><a href="#new-tabs">Implement Tabs Using New APIs</a></li> 42 <h2 id="new-tabs">Implement Tabs Using New APIs</h2> 51 alt="Class diagram for the Honeycomb implementation of tabs." id="figure-classes"> 53 …img-caption"><strong>Figure 1.</strong> Class diagram for the Honeycomb implementation of tabs.</p> 57 …t class that <code>TabHelperHoneycomb</code> uses to reference individual tabs. <code>CompatTabHon…
|
D | using-component.jd | 82 android:id="@android:id/tabs" 111 …nCreate()} method, you can obtain a <code>TabHelper</code> object and add tabs with the following … 138 …alt="Example screenshot of tabs running on an Android 2.3 device (using TabHelperEclair)." width="… 141 …alt="Example screenshots of tabs running on an Android 4.0 device (using TabHelperHoneycomb)." wid… 143 <p class="img-caption"><strong>Figure 1.</strong> Example screenshots of backward-compatible tabs r…
|
D | abstracting.jd | 39 <p>Suppose you want to use <a href="{@docRoot}guide/topics/ui/actionbar.html#Tabs">action bar tabs<… 53 …version of tabs, you should first determine which features and specific APIs your application requ… 63 …tabs are in {@link android.app.ActionBar} and {@link android.app.ActionBar.Tab ActionBar.Tab}. The… 95 <p>Next, define an abstract class that allows you to create and add tabs to an activity, like {@lin…
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
D | TestUtilsActions.java | 166 public static ViewAction addTabs(final String... tabs) { 183 for (int i = 0; i < tabs.length; i++) { 184 tabLayout.addTab(tabLayout.newTab().setText(tabs[i]));
|
/frameworks/base/core/java/android/text/ |
D | Layout.java | 935 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getHorizontal() local 936 if (tabs.length > 0) { in getHorizontal() 937 tabStops = new TabStops(TAB_INCREMENT, tabs); // XXX should reuse in getHorizontal() 1053 TabStopSpan[] tabs = getParagraphSpans((Spanned) mText, start, end, TabStopSpan.class); in getLineExtent() local 1054 if (tabs.length > 0) { in getLineExtent() 1055 tabStops = new TabStops(TAB_INCREMENT, tabs); // XXX should reuse in getLineExtent() 1810 float h, Object[] tabs) { 1815 if (tabs == null) { 1816 tabs = getParagraphSpans((Spanned) text, start, end, TabStopSpan.class); 1820 for (int i = 0; i < tabs.length; i++) { [all …]
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
D | TabLayoutCustomItemsUsage.java | 41 TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs); in onCreate()
|
D | AppBarLayoutUsageBase.java | 67 TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs); in onCreate()
|
D | TabLayoutPreselectedUsage.java | 56 mTabLayout = (TabLayout) findViewById(R.id.tabs); in onCreate()
|
D | TabLayoutUsage.java | 59 mTabLayout = (TabLayout) findViewById(R.id.tabs); in onCreate()
|
/frameworks/support/v13/java/android/support/v13/app/ |
D | FragmentTabHost.java | 145 if (findViewById(android.R.id.tabs) == null) { in ensureHierarchy() 153 tw.setId(android.R.id.tabs); in ensureHierarchy()
|
/frameworks/support/fragment/java/android/support/v4/app/ |
D | FragmentTabHost.java | 156 if (findViewById(android.R.id.tabs) == null) { in ensureHierarchy() 164 tw.setId(android.R.id.tabs); in ensureHierarchy()
|
/frameworks/base/media/java/android/media/ |
D | ClosedCaptionRenderer.java | 396 int tabs = ccData.getTabOffset(); in handleTabOffsets() local 398 if (tabs > 0) { in handleTabOffsets() 399 getMemory().tab(tabs); in handleTabOffsets() 793 void tab(int tabs) { in tab() argument 794 moveCursorByCol(tabs); in tab()
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
D | index.jd | 29 icons in menus, dialogs, tabs, the status bar, and lists. The Icon Guidelines
|
/frameworks/base/docs/html/guide/practices/ |
D | tablets-and-handsets.jd | 101 items". You can also add navigation features to the action bar, such as tabs or a drop-down list, 398 presentation to different screen sizes. For example, when the width is too narrow for both tabs and 399 other action items (such as a handset in portrait orientation), the tabs appear below the action bar 408 and the tabs appear in a separate row (the stacked action bar). On the tablet, more action items can 409 fit in the action bar and so do the tabs.</p> 433 <p class="img-caption"><strong>Figure 3.</strong> Split action bar with navigation tabs on the left; 438 navigation tabs along with the split action bar, call {@link 441 so it disappears and all that’s left are the navigation tabs at the top and the action items at the
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ActionBarOverlayLayout.java | 353 final View tabs = mActionBarTop.getTabContainer(); 354 if (tabs != null) {
|