如何根据 google 的 Material 设计指南创建可滚动的 TabLayout?

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

如何为第一个选项卡创建带边距的可滚动 TabLayout,但是当用户滚动选项卡时,它们会沿整个宽度滚动?

layout_marginStart 在这种情况下不起作用。

Example from Google (gif)

我解决了!只需使用

app:tabContentStart="72dp"