以编程方式更改ActionBar选项卡为颜色加下划线 [英] Changing ActionBar tabs underline color programmatically

查看:131
本文介绍了以编程方式更改ActionBar选项卡为颜色加下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过

ActionBar actionbar = getActionBar()

操作栏的背景已更改

actionbar.setBackgroundDrawable(actionBarBackgroundImage);

现在,我需要以编程方式更改下划线颜色的操作栏选项卡.有什么方法可以更改操作栏标签的下划线颜色?

Now I need to change the action bar tabs underline color programmatically. Is there any method to change the action bar tabs underline color?

推荐答案

或者,您可以使用 Android操作栏样式生成器,可轻松为操作栏和选项卡设置主题.

Alternatively you could use Android Action Bar Style Generator to easily theme your action bar and tabs.

这篇关于以编程方式更改ActionBar选项卡为颜色加下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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