アンドリュースは、黒と白のステータスバーを設定します

グローバルスタイルで(これは設定されているのAndroidManifest.xmlアプリケーションの特定のテーマに、あります)

<style name="AppTheme_StartActivity" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/white</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:windowLightStatusBar">true</item>
    </style>

<item name="android:windowLightStatusBar">true</item>:我々は白を使用するように、淡色ステータスバー、パワーバーのテキストの使用は、以下のような効果がある、、、電気とcolorPrimaryDarkバーの背景を暗くされています

 

公開された24元の記事 ウォンの賞賛5 ビュー20000 +

おすすめ

転載: blog.csdn.net/qq_26923265/article/details/90675081