gpt4 book ai didi

android - 如何在没有 tabWidget View 的情况下将选项卡放入 tabHost?

转载 作者:行者123 更新时间:2023-11-30 04:27:26 25 4
gpt4 key购买 nike

我想在 tabHost 中隐藏 1 个选项卡指示器 View ,因为我将使用另一个按钮来完成它。当我以这种方式隐藏它时,问题就来了:

 getTabHost().getTabWidget().getChildTabViewAt(3).setVisibility(View.GONE);

然后分隔符仍然出现在 tabWidget 中。

知道我该怎么做吗?

谢谢。

最佳答案

如果我没猜错,您想更改 tabIndicator 的 View 。如果是,则在添加选项卡时使用 setindicator(view)

在 ApiDemoes 中获取更多帮助 tabs1.java

关于android - 如何在没有 tabWidget View 的情况下将选项卡放入 tabHost?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8241982/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com