這是我的固定頁腳佈局。包含RecyclerView
的Fragment
附於FrameLayout
。但是RecyclerView
的內容正在被頁腳佈局重疊。在android佈局中固定頁腳
<RelativeLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical">
<FrameLayout
android:id="@+id/home_parent_framelayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<LinearLayout
android:id="@+id/footer_linearlayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#f1c21e"
android:layout_alignParentBottom="true">
<footer layout>
</LinearLayout>
</RelativeLayout>
的FrameLayout具有高度包裹內容,所以當我添加機器人:layout_above =「@ + ID/footer_linearlayout」中的FrameLayout佈局上面顯示頁腳但在它上面留下了很多空的空間(framelayout),因爲它有高度包裝內容。 –
然後將「FrameLayout」高度設置爲「match_parent」,它會將全部高度設置爲「FrameLayout」。它會解決你的問題。 – Ironman
@Androidjack你解決了嗎? – Ironman