TabLayout的不同tabMode [英] Different tabMode for TabLayout

查看:328
本文介绍了TabLayout的不同tabMode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ViewPager和TabLayout.如果可以在显示tabMode上放置选项卡,则它们必须为:

I`m using ViewPager and TabLayout. If tabs can be placed on the display tabMode they must be:

app:tabMode="fixed"

其他

app:tabMode="scrollable"

我该怎么做?

推荐答案

我没有收到您的问题,但我可能会帮助您, 如果选项卡数是静态的或固定的(您知道选项卡数),则app:tabMode="fixed" 如果选项卡计数是动态的(数据来自提要),则app:tabMode="scrollable"

I din't get your question but i may help you, if tabs count is static or fixed(you know number of tabs) then app:tabMode="fixed" if tabs count is dynamic(data coming from feed) then app:tabMode="scrollable"

这篇关于TabLayout的不同tabMode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆