Top "Android-tablayout" questions

Android TableLayout provides a grid like layout to organize rows and columns of information.

Dynamically add and remove tabs in TabLayout(material design) android

I have a TabLayout and inside that I have ViewPager. I need to dynamically add and remove tab in tablayout(…

android android-viewpager android-design-library android-tablayout
How to get current selected tab index in TabLayout?

When I use ActionBar tabs, I use this code. private int getCurrentTabIndex() { ActionBar actionBar = activity.getSupportActionBar(); ActionBar.Tab selectedTab = actionBar.…

java android tabs android-tablayout
android:textAllCaps="false" not working for TabLayout design Support

I have set android:textAllCaps="false" in my android.support.design.widget.TabLayout thought it is showing the Tab Title …

android androiddesignsupport android-tablayout
TabLayout not filling width when tabMode set to 'scrollable'

I have added TabLayout (from support library v22.2.1) to my Fragment as: <android.support.design.widget.TabLayout android:id="@+…

android android-support-library android-tablayout
Changing the background color of a Tab in TabLayout (Android design support library) doesn't occupy the entire tab space

I have a TabLayout (design support library) which is tied up to a ViewPager containing three tabs. I have designed …

android android-design-library android-tablayout
TabLayout set spacing or margin each tab

I want to set margin in between each tab. Like in PagerTabStrip which has setTextSpacing(int textSpacing) to make text …

android android-layout android-support-library androiddesignsupport android-tablayout
How to set android TabLayout in the bottom of the screen?

My question is how I can set the new android material design TabLayout to be in the bottom of the …

android android-layout android-tablayout
Android TabLayout inside Fragment

I am using Navigation Drawer to navigate between fragments they all use the MainActivity toolbar but each fragment has it's …

android android-fragments android-recyclerview android-tablayout
How to use TabLayout with ViewPager2 in Android

I want to use com.google.android.material.tabs.TabLayout component with Android's new ViewPager implementation androidx.viewpager2.widget.ViewPager2. …

java android androidx android-tablayout android-viewpager2