TabLayout has a method setTabMode() which can be either MODE_FIXED (default) or MODE_SCROLLABLE which is what you need.
You can also define this in XML with app:tabMode="scrollable".
TabLayout has a method setTabMode() which can be either MODE_FIXED (default) or MODE_SCROLLABLE which is what you need.
You can also define this in XML with app:tabMode="scrollable".