我的列表视图在应用栏上方
My listview is above the appbar
我有一个类似应用栏菜单选项的 whatsapp,但列表视图位于此框架布局之上。而且我还添加了滚动行为。在我进行更改之前它工作得很好,现在我不知道如何修复它。
<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>
尝试在您的 "content_host_main_menu.xml" 父布局中添加 app:layout_behavior="@string/appbar_scrolling_view_behavior"
我有一个类似应用栏菜单选项的 whatsapp,但列表视图位于此框架布局之上。而且我还添加了滚动行为。在我进行更改之前它工作得很好,现在我不知道如何修复它。
<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>
尝试在您的 "content_host_main_menu.xml" 父布局中添加 app:layout_behavior="@string/appbar_scrolling_view_behavior"