如何在选项卡视图中滚动选项卡
我在选项卡视图中使用六个选项卡。在纵向模式下,选项卡尺寸变得非常小。所以我想水平滚动选项卡,以便每个选项卡的大小保持原始大小。我们怎样才能做到这一点?
I am using six tabs in tab view. In portrait mode tab size become very small .So i want to scroll the tabs in horizontal so that size of each tab will remain original . How we can do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是您要找的吗? http://blog.uncommons.org/2011/04/ 18/scrolling-tabs-in-android/
Is this what you are looking for? http://blog.uncommons.org/2011/04/18/scrolling-tabs-in-android/
网上有很多解决方案,但它们都很复杂而且没有必要。如果您尝试使屏幕顶部的选项卡可滚动,那么您可以使用我在下面显示的这个简单的实现。希望这有帮助。
There are a lot of solutions on the web for this but they're all complicated and unnecessary. If you are trying to make the tabs on the top of the screen scroll-able then you can use this simple implementation I have shown below. Hope this helps.