Searched refs:tabLayout (Results 1 – 8 of 8) sorted by relevance
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | TabLayoutTest.java | 69 final TabLayout tabLayout = (TabLayout) inflater.inflate(R.layout.design_tabs_items, null); in testInflateTabLayoutWithTabItems() local 71 assertEquals(3, tabLayout.getTabCount()); in testInflateTabLayoutWithTabItems() 74 TabLayout.Tab tab = tabLayout.getTabAt(0); in testInflateTabLayoutWithTabItems() 81 tab = tabLayout.getTabAt(1); in testInflateTabLayoutWithTabItems() 87 tab = tabLayout.getTabAt(2); in testInflateTabLayoutWithTabItems() 114 final TabLayout tabLayout = (TabLayout) inflater.inflate(R.layout.design_tabs, null); in testTabWithCustomLayoutSelection1() local 115 tabLayout.addOnTabSelectedListener(mockListener); in testTabWithCustomLayoutSelection1() 116 final TabLayout.Tab tab = tabLayout.newTab(); in testTabWithCustomLayoutSelection1() 118 tabLayout.addTab(tab); in testTabWithCustomLayoutSelection1() 123 assertEquals("First tab is selected", 0, tabLayout.getSelectedTabPosition()); in testTabWithCustomLayoutSelection1() [all …]
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
D | TabLayoutActions.java | 51 TabLayout tabLayout = (TabLayout) view; in setupWithViewPager() local 52 tabLayout.setupWithViewPager(viewPager); in setupWithViewPager() 79 TabLayout tabLayout = (TabLayout) view; 80 tabLayout.setupWithViewPager(viewPager, autoRefresh); 106 TabLayout tabLayout = (TabLayout) view; 107 tabLayout.getTabAt(tabIndex).select(); 133 TabLayout tabLayout = (TabLayout) view; 134 tabLayout.setTabMode(tabMode);
|
D | TestUtilsActions.java | 189 TabLayout tabLayout = (TabLayout) view; 191 tabLayout.addTab(tabLayout.newTab().setText(tabs[i]));
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
D | AppBarLayoutUsageBase.java | 70 TabLayout tabLayout = findViewById(R.id.tabs); in onCreate() local 71 if (tabLayout != null) { in onCreate() 72 setupTabs(tabLayout); in onCreate() 117 private void addRandomTab(TabLayout tabLayout) { in addRandomTab() argument 120 tabLayout.addTab(tabLayout.newTab().setText(cheese)); in addRandomTab() 123 private void setupTabs(TabLayout tabLayout) { in setupTabs() argument 125 addRandomTab(tabLayout); in setupTabs()
|
D | TabLayoutCustomItemsUsage.java | 41 TabLayout tabLayout = findViewById(R.id.tabs); in onCreate() local 43 TabLayout.Tab tab = tabLayout.newTab(); in onCreate() 45 tabLayout.addTab(tab); in onCreate()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollingTabContainerView.java | 194 final LinearLayout tabLayout = new LinearLayout(getContext(), null, in createTabLayout() local 196 tabLayout.setMeasureWithLargestChildEnabled(true); in createTabLayout() 197 tabLayout.setGravity(Gravity.CENTER); in createTabLayout() 198 tabLayout.setLayoutParams(new LinearLayout.LayoutParams( in createTabLayout() 200 return tabLayout; in createTabLayout()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ScrollingTabContainerView.java | 202 final LinearLayoutCompat tabLayout = new LinearLayoutCompat(getContext(), null, in createTabLayout() local 204 tabLayout.setMeasureWithLargestChildEnabled(true); in createTabLayout() 205 tabLayout.setGravity(Gravity.CENTER); in createTabLayout() 206 tabLayout.setLayoutParams(new LinearLayoutCompat.LayoutParams( in createTabLayout() 208 return tabLayout; in createTabLayout()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | TabLayout.java | 2110 public TabLayoutOnPageChangeListener(TabLayout tabLayout) { in TabLayoutOnPageChangeListener() argument 2111 mTabLayoutRef = new WeakReference<>(tabLayout); in TabLayoutOnPageChangeListener() 2123 final TabLayout tabLayout = mTabLayoutRef.get(); in onPageScrolled() local 2124 if (tabLayout != null) { in onPageScrolled() 2134 tabLayout.setScrollPosition(position, positionOffset, updateText, updateIndicator); in onPageScrolled() 2140 final TabLayout tabLayout = mTabLayoutRef.get(); in onPageSelected() local 2141 if (tabLayout != null && tabLayout.getSelectedTabPosition() != position in onPageSelected() 2142 && position < tabLayout.getTabCount()) { in onPageSelected() 2148 tabLayout.selectTab(tabLayout.getTabAt(position), updateIndicator); in onPageSelected()
|