こんにちは私は単純に私のコンテンツをツールバーの下に置こうとしていますが、私のアプリケーションを実行する瞬間、その下にあるときにコンテンツの一部が隠れてしまいます。ツールバーのコンテンツを表示する
フレームレイアウトを使用して分割しようとしましたが、ちょっと立ち往生しました。私は現在、ソフトウェアと一緒に提供されている基本的なアンドロイドスタジオナビゲーションドロワーテンプレートを使用しており、何を変更しなければならないのか不思議に思っていました。
マイコーディネーターレイアウト
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.design.widget.CoordinatorLayout>
私の引き出しのレイアウト私は確認する必要がありますどのような変更
<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:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>
?
物事をより明確にするためにレイアウト属性を追加するように編集しました。 – Karakuri
非常にありがとう、問題はどのようにシンプルだったか分からなかったソート:D – james