我们可以修复所选标签的位置吗? [英] Can we fix position of selected tab?

查看:27
本文介绍了我们可以修复所选标签的位置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用 TabLayout 实现选项卡,但以不同的方式.我想要的是,我的标签应该是可滚动的,但我想将所选标签的位置固定在中间.到目前为止,我发现我们可以有固定选项卡或可滚动选项卡,但没有关于固定所选选项卡的位置.这可能吗?

I want to implement tabs with TabLayout but in a different way. What I want is, my tabs should be scrollable but I want to fix the position of the selected tab to be at middle. So far, I have found that we can have fixed tabs or scrollable tabs but nothing about fixing position of selected tab. Is this possible?

推荐答案

刚接触到这个库 SmartTabLayout这正是我想要的.把它张贴在这里,以防其他人将来需要它.

Just came across this library SmartTabLayout and this is exactly what I wanted. Posting it here, in case anyone else need it in future.

这篇关于我们可以修复所选标签的位置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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