Android Material 在 XML 中使用选项卡 (TabLayout) 进行设计
Android Material Design working with Tabs(TabLayout) in XML
我正在尝试在 android 中使用 TabLayout
application.I 检查了各种资源,但无法弄清楚如何创建在 [=20 中配置的选项卡=] 只有 。
我知道如何以编程方式添加选项卡
目前无法执行此操作。我会告诉你检查 the documentation and see that TabLayout
has no xml attributes to reflect that, but they don't even have the ones that should be there, like tabGravity
and tabMode
, so I guess it can't be trusted. There's even an issue about it.
我正在尝试在 android 中使用 TabLayout
application.I 检查了各种资源,但无法弄清楚如何创建在 [=20 中配置的选项卡=] 只有 。
我知道如何以编程方式添加选项卡
目前无法执行此操作。我会告诉你检查 the documentation and see that TabLayout
has no xml attributes to reflect that, but they don't even have the ones that should be there, like tabGravity
and tabMode
, so I guess it can't be trusted. There's even an issue about it.