Hier ist mein Layout für feste Fußzeile. Eine , die RecyclerView
enthält, ist an FrameLayout
angefügt. Der Inhalt von RecyclerView
wird jedoch vom Footer-Layout überlagert.Feste Fußzeile in Android-Layout
<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 hat die Höhe als Wrap Inhalte so, wenn ich android hinzufügen: layout_above = „@ + id/footer_linearlayout“ die framelayout Layout oben Fußzeile angezeigt wird hinterlässt jedoch viel freien Raum (framelayout), da es einen hohen Wrap-Inhalt hat. –
Dann geben Sie 'FrameLayout' height an' match_parent' an, es nimmt die volle Höhe von 'FrameLayout' an. es wird dein Problem lösen .. – Ironman
@Androidjack hast du es gelöst oder nicht ?? – Ironman