[英]Overlay split action bar and make background color semi transparent
I want to overlay the split action bar and make the background semi transparent, just like facebook. 我想覆盖拆分操作栏并使背景半透明,就像facebook一样。
Any iteas please. 请提出任何想法。 I tried
我试过了
getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
setContentView(R.layout.activity_home);
getActionBar().setBackgroundDrawable(new ColorDrawable(Color.argb(128, 0, 0, 0)));
but it is overlaying the top bar and not the bottom. 但它覆盖顶部栏而不是底部。
Thanks, Noorul 谢谢,Noorul
I think it is 我觉得是这样的
getActionBar().setSplitBackgroundDrawable(yourresource)
getActionBar()。setSplitBackgroundDrawable(您的资源)
I hope it helps ! 希望对您有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.