如何设计 onselect 位于 tabhost 中心的选项卡
我刚刚在使用 tabhost 进行布局设计时遇到了问题。
我需要完全相同的设计,以便在选择选项卡时它将位于屏幕的中央。设计如这些图片所示。
I just encountered a problem in layout design with tabhost.
i need exactly the same design so that on selecting a tab it will come in cented of the screen. with design like in these pictures.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前,
ViewPagerIndicator
是无需太多代码即可完成此操作的最佳资源。至于同样的设计,你需要自己做一些工作才能完成。如果您查看项目 github 上的示例,您将看到一些有关如何设置 ViewPagerIndicator 主题的示例。http://viewpagerindicator.com/
Currently
ViewPagerIndicator
is the best resource for getting this done without too much code. As for the same design you're going to have to do a little work yourself to get that done. If you look through the samples on the projects github you'll see some examples of how theViewPagerIndicator
can be themed.http://viewpagerindicator.com/