0

私のアンドロイドアプリケーションでは、ステータスバーをすべてのアイコンで透明に変更する必要があります。私は色を変えたり、半透明にしたりしたくありません。下の画像に示すようにステータスバーをすべてのアイコンで透明に変更する必要があります

は私がステータスバーをしたい:

<style name="AppTheme.FullScreen" parent="AppTheme.NoActionBar"> 
 
    <item name="windowActionBar">false</item> 
 
    <item name="windowNoTitle">true</item> 
 
    <item name="android:windowTranslucentStatus">true</item> 
 
    <item name="android:windowContentTransitions">true</item> 
 
</style>

enter image description here

+0

複製物の複製:http://stackoverflow.com/questions/27856603/lollipop-draw-behind-statusbar-with-its-color-set-to-transparent – Abhishek

+0

[Lollipop:statusBarの後ろに描画する色が重複する可能性があります透明に設定](http://stackoverflow.com/questions/27856603/lollipop-draw-behind-statusbar-with-its-color-set-to-transparent) – Manu

答えて

0

することはできのonCreate方法でこの コールのようにプログラム的にこれを用いた透明ステータスバー

if (Build.VERSION.SDK_INT >= 21) { 
     getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS, 
       WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); 
    } 
+0

ステータスバーを半透明にします。しかし、私は完全に透明としてステータスバーを行う必要があります。 –

関連する問題