更改Android的TabWidget底部栏的颜色 [英] Change Android TabWidget bottom bar color

查看:395
本文介绍了更改Android的TabWidget底部栏的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何更改TabWidget底栏的颜色?我已经成功地改变了标签背景色,但底部栏仍然是灰色/橙色和我找不到在Android文档和源对此的任何信息。谢谢。

How do I change the color of the bottom bar for TabWidget? I have successfully changed the tab background color but the bottom bar is still grey/orange and I couldn't find any info in the Android doc and source regarding this. Thanks.

推荐答案

我猜底栏指的是可选的水平线分隔标签和内容。看看在的TabWidget API文档的各种标签栏属性。可以设置不同的可绘制的数据条的左,右部分。

I'm guessing that "bottom bar" refers to the optional horizontal line that separates the tabs and the content. Take a look at the various tabStrip attributes described in the TabWidget API doc. You can set different drawables for the left and right parts of the strip.

这篇关于更改Android的TabWidget底部栏的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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