Search code examples
androidmaterial-designandroid-tablayout

How create a scrollable TabLayout from google's guideline for Material Design?


How I can create a scrollable TabLayout with margin for 1st tab, but when user scrolls tabs, they would be scrolled along the entire width?

layout_marginStart doesn't work in this case.

Example from Google (gif)


Solution

  • I solved it! Just use

    app:tabContentStart="72dp"