gpt4 book ai didi

android - 如何去掉 2.1 中 Tab 下的线?

转载 作者:行者123 更新时间:2023-11-29 00:41:37 25 4
gpt4 key购买 nike

有什么方法可以删除出现在 android 2.1 选项卡下的小线?

我找到了适用于 2.1++ 版本的解决方案,但找不到适用于 android 2.1 或更低版本的解决方案。

//tabHost.getTabWidget().setStripEnabled(false); .

我可以通过在相对布局中制作 tabwidget 和 imageview 来删除这条线,这样 imageView 在选项卡下与这条线重叠吗?

最佳答案

我发现的唯一黑客是:

<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="-6dp"
android:layout_marginTop="2dp" />

希望这对您有所帮助!

关于android - 如何去掉 2.1 中 Tab 下的线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8983272/

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