make tablayout scrollable horizontal code example
Example: tablayout horizontal scroll
In Java:
tabLayout.setTabMode(MODE_SCROLLABLE) // Default is MODE_FIXED
In XML:
app:tabMode="scrollable"
In Java:
tabLayout.setTabMode(MODE_SCROLLABLE) // Default is MODE_FIXED
In XML:
app:tabMode="scrollable"