除去在标签栏的底线边界? (和更改选定的颜色) [英] Remove the bottom line border in tab bar? (And change selected color)

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

问题描述

是否可以删除的底线在标签栏显示?它是灰色的时候不选。

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"/> 

在值/ 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天全站免登陆