Search code examples
androidandroid-viewpagermaterial-designandroid-support-libraryandroid-tablayout

How to provide overflow pagination in android tab layout?


According to Material design guidelines ,In android.support.design.widget.TabLayout when there are many tabs which cannot fit the screen size we can use overflow pagination , by providing a right arrow which when clicked will show all the remaining tabs by scrolling horizontally.How to achieve this?

[Here's an image of the same given in guidelines]

enter image description here


Solution

  • That pattern is in the 'Desktop tabs' section and therefore not supported by TabLayout, which is specifically targeting the 'Mobile tabs' section.