2017-10-05 15 views
0

whatsapp appbar 메뉴 옵션이 있지만 목록보기가이 프레임 레이아웃 위에 있습니다. 스크롤 동작도 추가했습니다. 변경을 할 때까지 완벽하게 작동하고 있었고 지금은 수정 방법을 모른다.내 listview가 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

app:layout_behavior="@string/appbar_scrolling_view_behavior"을 추가? ** 편집 ** layout_weight를 사용하지 마십시오. –

답변

0

에 한번있는 LinearLayout (수직)로 운반하려고 당신의 "content_host_main_menu.xml"부모 레이아웃

+0

thnx 문제가 발견되었습니다. app : layout_behavior = "@ string/appbar_scrolling_view_behavior"도구를 사용해야했습니다. 왜 내가 infront 도구를 추가 해야할지 모르겠다. 고맙습니다. – SpriteAndDreams

+0

도구 모음 모서리에 이미지를 표시하는 데 문제가 있습니다. 아무 것도 표시되지 않고 검은 색 도구 모음이 표시됩니다. – SpriteAndDreams