Afficher le contenu sous la barre d'outils

Bonjour, je suis d'essayer de simplement mettre mon contenu en dessous de la barre d'outils, mais pour le moment, quand je lance mon application, une partie du contenu est caché derrière elle alors qu'elle devrait être en dessous.

J'ai lu sur l'utilisation d'un cadre de mise en page pour tenter de les séparer mais je me suis un peu coincé. Je suis actuellement en utilisant une base d'android studio de navigation tiroir gabarit fourni avec le logiciel et je me demandais ce que les changements que j'ai à faire.

Mon coordonnateur de la mise en page

<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>

Mon tiroir à disposition

<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>

Quels changements dois-je faire?

  • recherche pour redimensionner shrink/ mise à l'échelle vers le haut/vers le bas d'un point de vue sous l'effondrement de la barre d'outils. absolue de la douleur dans le cul.
InformationsquelleAutor james | 2016-04-24