【问题标题】:How to change the color of a specific component of the action bar如何更改操作栏特定组件的颜色
【发布时间】:2013-11-27 03:40:48
【问题描述】:

我想更改操作栏特定部分的颜色;因为我真的不知道怎么称呼它,所以我会发布一张图片:

你看到蓝线了吗?好吧,我想让它变成另一种颜色;我应该怎么办?谢谢。

【问题讨论】:

标签: android android-actionbar


【解决方案1】:

这样做:

 ActionBar bar = getActionBar();
 bar.setBackgroundDrawable(new ColorDrawable("COLOR"));

我评论了有用的链接,用操作栏做你想做的事

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多