如何把背景颜色为Android操作栏, [英] How to put background colour for action bar in android
本文介绍了如何把背景颜色为Android操作栏,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能改变操作栏的而不是默认的黑色的背景。我想要的东西像其他社交网络的Android应用程序是如何拥有。
How can i change the background of the action bar instead of that default black one. I want something like how other social networking android applications are having.
推荐答案
您可以使用
ActionBar bar = getSupportActionBar();
bar.setBackgroundDrawable(new ColorDrawable(Color.parseColor("yourColor")));
这篇关于如何把背景颜色为Android操作栏,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文