app/src/main/res/layout/activity_offline_map_downloader.xml
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.map.OfflineMapDownloaderActivity">
<com.mapbox.mapboxsdk.maps.MapView
android:id="@+id/mapView_downloader"
android:layout_width="match_parent"
android:layout_height="match_parent"
mapbox:mapbox_cameraTargetLat="37.73359"
mapbox:mapbox_cameraTargetLng="-119.58410"
mapbox:mapbox_cameraZoom="10"
mapbox:mapbox_cameraZoomMin="10">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.map.OfflineMapDownloaderActivity">
<Button
android:id="@+id/downloader_exit"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="start"
android:background="@drawable/roundedbutton"
android:text="@string/cross"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.989"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.006" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.mapbox.mapboxsdk.maps.MapView>
<ProgressBar
android:id="@+id/progress_bar_map_downloader"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_gravity="center"
android:paddingLeft="25dp"
android:paddingRight="25dp"
android:visibility="gone" />
</merge>