Searched refs:tabLayout (Results 1 – 4 of 4) sorted by relevance
76 private SeparatedTabLayoutOnPageChangeCallback(TabLayout tabLayout) { in SeparatedTabLayoutOnPageChangeCallback() argument77 mTabLayoutRef = new WeakReference<>(tabLayout); in SeparatedTabLayoutOnPageChangeCallback()110 TabLayout tabLayout = mTabLayoutRef.get(); in updateTabPositionIfNeeded() local111 if (tabLayout != null in updateTabPositionIfNeeded()112 && tabLayout.getSelectedTabPosition() != position in updateTabPositionIfNeeded()113 && position < tabLayout.getTabCount()) { in updateTabPositionIfNeeded()114 tabLayout.selectTab(tabLayout.getTabAt(position), /* updateIndicator= */ true); in updateTabPositionIfNeeded()
333 final TabLayout tabLayout = (TabLayout) findViewById(R.id.tab_layout); in initializeDesktop() local334 tabLayout.addOnTabSelectedListener(new OnTabSelectedListener() { in initializeDesktop()339 mLastSelectedCategoryTabIndex = tabLayout.getSelectedTabPosition(); in initializeDesktop()641 TabLayout tabLayout = (TabLayout) findViewById(R.id.tab_layout); in onSaveInstanceState() local646 if (tabLayout != null) { in onSaveInstanceState()647 … savedInstanceState.putInt(KEY_SELECTED_CATEGORY_TAB, tabLayout.getSelectedTabPosition()); in onSaveInstanceState()674 final TabLayout tabLayout = (TabLayout) findViewById(R.id.tab_layout); in populateCategoryTabs() local675 tabLayout.removeAllTabs(); in populateCategoryTabs()684 Tab tab = tabLayout.newTab(); in populateCategoryTabs()687 tabLayout.addTab(tab, false /* setSelected */); in populateCategoryTabs()[all …]
141 private void setupTabTextColor(TabLayout tabLayout) { in setupTabTextColor() argument142 final ColorStateList defaultColorStateList = tabLayout.getTabTextColors(); in setupTabTextColor()155 tabLayout.setTabTextColors(resultColorStateList); in setupTabTextColor()
145 TabLayout tabLayout = mTabLayout; in maybeHideTabs() local147 tabLayout.setVisibility(View.GONE); in maybeHideTabs()149 tabLayout.setVisibility(View.VISIBLE); in maybeHideTabs()