在我的 XML中,它似乎没有工作,行仍然存在,我尝试其他方式,如在style.xml中进行更改(我从stackoverflow中找到),但它也不起作用.任何的想法?
我的标签xml:
<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent" androID:orIEntation="vertical" > <TabHost xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:ID="@androID:ID/tabhost" androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent" > <relativeLayout androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent" androID:orIEntation="vertical" > <FrameLayout androID:ID="@androID:ID/tabcontent" androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent" androID:layout_above="@androID:ID/tabs" /> <TabWidget androID:ID="@androID:ID/tabs" androID:layout_wIDth="fill_parent" androID:layout_height="wrap_content" androID:layout_alignParentBottom="true" androID:background="#FFFFFF" androID:tabStripEnabled="false" androID:layout_gravity="bottom" /> </relativeLayout> </TabHost></linearLayout>解决方法 您可以使用以下语句删除选项卡的底部条带和选项卡之间的分隔符.
TabHost t; t.getTabWidget().setStripEnabled(false); t.getTabWidget().setdivIDerDrawable(R.drawable.ic_launcher);总结
以上是内存溢出为你收集整理的android:tabStripEnabled =“false”不起作用全部内容,希望文章能够帮你解决android:tabStripEnabled =“false”不起作用所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)