Ich versuche, etwas ähnliches zu Field Trip App wie dieses Bild zu erreichen:RecyclerView am unteren Rand der Karte Android
Unten ist mein Fragment Layout xml:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.android.gms.maps.MapView
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/map_recyclerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:reverseLayout="true"
android:divider="@null"
android:layout_gravity="center_horizontal|bottom"/>
</FrameLayout>
Aber bin RecyclerView kann nicht angezeigt werden, stattdessen belegt Map die volle Höhe.