2017-10-05 2 views
0

私はwhatsappのような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

問題が見つかりました。私はツールを使用しなければなりませんでした:app:layout_behavior = "@ string/appbar_scrolling_view_behavior"。私はなぜツールを追加する必要があるのか​​分からない。ありがとうございました。 – SpriteAndDreams

+0

ツールバーの隅に画像を表示する際に問題があり、何も表示されず、黒色のツールバーが表示されます。 – SpriteAndDreams

関連する問題