如何设计 onselect 位于 tabhost 中心的选项卡

发布于 2025-01-04 01:29:35 字数 222 浏览 2 评论 0原文

我刚刚在使用 tabhost在此处输入图像描述 进行布局设计时遇到了问题。

i need it like this

我需要完全相同的设计,以便在选择选项卡时它将位于屏幕的中央。设计如这些图片所示。

I just encountered a problem in layout design with tabhostenter image description here.

i need it like this

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

可爱咩 2025-01-11 01:29:36

目前,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 the ViewPagerIndicator can be themed.

http://viewpagerindicator.com/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文