【问题标题】:How create a scrollable TabLayout from google's guideline for Material Design?如何从谷歌的 Material Design 指南创建可滚动的 TabLayout?
【发布时间】:2016-08-11 08:15:23
【问题描述】:

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

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

Example from Google (gif)

【问题讨论】:

    标签: android material-design android-tablayout


    【解决方案1】:

    我解决了!只需使用

    app:tabContentStart="72dp"
    

    【讨论】:

      猜你喜欢
      • 2015-05-26
      • 2016-01-12
      • 1970-01-01
      • 2021-02-28
      • 2017-06-10
      • 2016-04-08
      • 1970-01-01
      • 2017-04-05
      • 2017-02-05
      相关资源
      最近更新 更多