删除标签栏中的底线边框?(并更改所选颜色) [英] Remove the bottom line border in tab bar? (And change selected color)

查看:28
本文介绍了删除标签栏中的底线边框?(并更改所选颜色)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以删除标签栏中显示的底线?未选中时为灰色.

Is it possible to remove the bottom line showed in the tab bar? It is grey when not selected.

是否可以将黄色更改为其他颜色?

And is it possible to change the yellowish color to something else?

布局xml:http://pastebin.com/M2KqtH1r

推荐答案

在 AndroidManifest.xml 中:

In AndroidManifest.xml:

 <activity android:name=".ActivityName" android:theme="@style/tabTheme"/> 

在 values/styles.xml 中:

In values/styles.xml:

 <style name="tabTheme" parent="android:style/Theme"> 
      <item name="android:tabWidgetStyle">@style/Widget.TabWidget</item>
 </style> 

 <style name="Widget.TabWidget" parent="android:Theme"> 
      <item name="android:tabStripEnabled">false</item>
 </style>  

这篇关于删除标签栏中的底线边框?(并更改所选颜色)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆