I\'m referencing a great demo here regarding material design. It has tabs, but when I add too many the tab items get squished (see screenshot). How can I make it scroll hori
TabLayout has a method setTabMode() which can be either MODE_FIXED (default) or MODE_SCROLLABLE which is what you need.
TabLayout
MODE_FIXED
MODE_SCROLLABLE
You can also define this in XML with app:tabMode="scrollable".
app:tabMode="scrollable"