Comment puis-je faire DrawerLayout à afficher au-dessous de la Barre d'outils?

Comment tirer le tiroir de la mise en page ci-dessous l'actionbar/barre d'outils? Je suis l'aide de v7:21 app compat bibliothèque avec la nouvelle Barre d'outils de la vue.

Exemples que je vois ressemble à

<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/my_drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

<!-- drawer view -->
<LinearLayout
    android:layout_width="304dp"
    android:layout_height="match_parent"
    android:layout_gravity="left|start">

    <!-- drawer content -->

</LinearLayout>

<!-- normal content view -->
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <!-- The toolbar -->
    <android.support.v7.widget.Toolbar  
        android:id="@+id/my_awesome_toolbar"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:minHeight="?attr/actionBarSize"
        android:background="?attr/colorPrimary" />

    <!-- The rest of content view -->

</LinearLayout>  

Mais ensuite elle sera cachée par le tiroir, ce qui rend une animation hamburger icône (comme v7.ActionBarDrawerToggle) inutile puisqu'il ne sera pas visible en dessous du tiroir, mais je ne veux pas utiliser la nouvelle Barre d'outils en vue de soutenir thème Matériau mieux.

Alors, comment le réaliser? Est-il possible d'avoir DrawerLayout comme un non affichage de niveau supérieur?

InformationsquelleAutor user1309971 | 2014-10-20