android:windowLightStatusBar
〜true
には、私のアプリ内のステータスバーに黒いアイコンとテキストを下の画像で表示するように設定しました。アンドロイド:windowLightStatusBarとナビゲーションドロワーの間の問題
しかし、もはやフィット画面へのナビゲーションドロワーは、以下の絵を見ません。これは、android:windowLightStatusBar
が確実に動作するように、android:windowTranslucentStatus
をfalseに設定する必要があるためです。回避策はありますか? Googleカレンダーのようなアプリはこの機能でうまくいくようです。
ここに私の主な活動のXML
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorToolbarBackground"
android:fitsSystemWindows="true"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/app_bar" />
<FrameLayout
android:id="@+id/frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:background="@color/colorWhite"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:menu="@menu/navigation_view_items" />
</android.support.v4.widget.DrawerLayout>
ている必要がありますか? –
はい、Googleカレンダーのように –
layout.xmlを追加してください –