简体   繁体   English

即使使用 Holo Light 主题,Honeycomb 状态栏仍然保持黑暗

[英]Honeycomb Status Bar remains dark even with Holo Light theme

Even after selecting a Holo light theme the status bar at the bottom still remains black.即使选择了 Holo 灯光主题,底部的状态栏仍然保持黑色。 My client wants the theme of the software to be light, and the contrasting black status bar with holo light white background is a real eyesore and worst of all you cant remove this bar either.我的客户希望软件的主题是轻的,而带有全息光白色背景的对比黑色状态栏真的很碍眼,最糟糕的是你也不能删除这个栏。 I know you can hide it but its still black.我知道你可以隐藏它,但它仍然是黑色的。

so my question is, is there something that i am missing that would turn my status bar into something less contrasting, something like所以我的问题是,我是否缺少一些东西可以将我的状态栏变成对比不那么强烈的东西,比如

View v = findViewById(R.id.myview);
v.setSystemUiVisibility(View.STATUS_BAR_HOLO_LIGHT);

or is there a way to make it translucent...或者有没有办法让它变成半透明...

or is that the way it is in honeycomb either your app has a dark backgrounds or you are stuck with ugly white app with black status bar.还是它在蜂窝中的方式是您的应用程序具有深色背景,或者您被困在带有黑色状态栏的难看的白色应用程序中。

There is no way to change the status bar colour.无法更改状态栏颜色。

setSystemUiVisibility is only used to dim the status bar: setSystemUiVisibility 仅用于使状态栏变暗:

http://developer.android.com/reference/android/view/View.html#setSystemUiVisibility(int ) http://developer.android.com/reference/android/view/View.html#setSystemUiVisibility(int )

View v = findViewById(R.id.myview);
v.setSystemUiVisibility(View.STATUS_BAR_HIDDEN);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM