TabLayout
имеет поле с именем tabMode
, если вы хотите, чтобы его можно было прокручивать, тогда установите в TabLayout.MODE_SCROLLABLE
Вот полный документ
/**
* Scrollable tabs display a subset of tabs at any given moment, and can contain longer tab
* labels and a larger number of tabs. They are best used for browsing contexts in touch
* interfaces when users don’t need to directly compare the tab labels.
*
* @see #setTabMode(int)
* @see #getTabMode()
*/
public static final int MODE_SCROLLABLE = 0;
Я бы тожепредлагаем вам не делать режим прокрутки, если у вас есть минимум 6 вкладок