commit 196c22a3a1b97d3fb81f550bbd2c4a713da4f33b parent 66ec5710de3cc5799e78ba1e3b923b08da5006a9 Author: William Lindholm <william_lindholm@outlook.com> Date: Thu, 4 May 2023 20:40:26 +0200 Added mapFragment. Diffstat:
| M | app/src/main/res/layout/activity_meteorite.xml | | | 19 | +++++++++---------- |
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/app/src/main/res/layout/activity_meteorite.xml b/app/src/main/res/layout/activity_meteorite.xml @@ -7,15 +7,6 @@ android:layout_height="match_parent" tools:context=".MeteoriteActivity"> - <com.google.android.gms.maps.MapView - android:id="@+id/mapView" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="28dp" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHorizontal_bias="0.5" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/textview_meteoriteTitle" /> <TextView android:id="@+id/textview_meteoriteTitle" @@ -38,5 +29,13 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.498" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/mapView" /> + app:layout_constraintTop_toBottomOf="@+id/mapFragment" /> + + <fragment + android:id="@+id/mapFragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + class="com.google.android.gms.maps.SupportMapFragment" + tools:layout="@layout/fragment_maps" /> + </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file