2017-10-05 3 views
0

J'ai une option de menu apphats WhatsApp, mais la vue de la liste est au-dessus de cette mise en page. et j'ai ajouté le comportement de défilement aussi. Cela fonctionnait parfaitement bien jusqu'à ce que je fasse des changements et maintenant je ne sais pas comment y remédier.Ma liste est au-dessus de l'appbar

<android.support.design.widget.CoordinatorLayout 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:layout_width="match_parent" 
    android:layout_height="match_parent" 
    app:layout_behavior="@string/appbar_scrolling_view_behavior" 
    tools:context="com.example.feelingoodlivinbeta.socialdreams_a1.HostMainMenuActivity"> 

    <include layout="@layout/toolbar" /> 

    <android.support.design.widget.AppBarLayout 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:theme="@style/AppTheme.AppBarOverlay"> 
    </android.support.design.widget.AppBarLayout> 
     <FrameLayout 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:layout_marginTop="?attr/actionBarSize"> 

      <io.codetail.widget.RevealFrameLayout 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content"> 

       <include layout="@layout/settings_menu_host_layout" /> 

      </io.codetail.widget.RevealFrameLayout> 
     </FrameLayout> 
    <include layout="@layout/content_host_main_menu" /> 

</android.support.design.widget.CoordinatorLayout> 

enter image description here

+0

Essayez de les transporter dans LinearLayout (vertical)? ** Modifier ** n'utilisez pas layout_weight. –

Répondre

0

Essayez d'ajouter app:layout_behavior="@string/appbar_scrolling_view_behavior" dans votre mise en page de parent "content_host_main_menu.xml"

+0

J'ai trouvé le problème thnx, j'ai dû utiliser des outils: app: layout_behavior = "@ string/appbar_scrolling_view_behavior". Ne sais pas pourquoi j'ai besoin d'ajouter des outils en face. Je vous remercie. – SpriteAndDreams

+0

J'ai un problème en affichant une image dans le coin de ma barre d'outils, rien ne s'affiche, une barre d'outils noire est affichée. – SpriteAndDreams