2020-03-11 18:13:44 -07:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-02-17 10:38:33 -05:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-03-11 18:13:44 -07:00
|
|
|
android:layout_width="match_parent"
|
2022-02-17 10:38:33 -05:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
2022-08-23 20:05:19 -04:00
|
|
|
<org.osmdroid.views.MapView
|
|
|
|
|
android:id="@+id/map"
|
2022-02-17 10:38:33 -05:00
|
|
|
android:layout_width="match_parent"
|
2022-08-24 12:16:57 -04:00
|
|
|
android:layout_height="match_parent" />
|
2022-02-17 10:38:33 -05:00
|
|
|
|
2022-08-30 17:25:11 -03:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/mapStyleButton"
|
|
|
|
|
android:layout_width="48sp"
|
|
|
|
|
android:layout_height="56sp"
|
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
|
android:backgroundTint="@color/colorAdvancedBackground"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:contentDescription="@string/map_style_selection"
|
2022-08-30 17:25:11 -03:00
|
|
|
app:icon="@drawable/ic_twotone_layers_24"
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
|
app:iconPadding="0dp"
|
2022-09-06 18:31:14 -03:00
|
|
|
app:iconTint="@color/unselectedColor"
|
2022-08-30 17:25:11 -03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
2022-10-05 22:56:27 -04:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
android:id="@+id/cache_layout"
|
2022-10-06 17:08:35 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-10-16 19:16:33 -03:00
|
|
|
android:visibility="gone"
|
2022-10-06 17:08:35 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent">
|
2022-10-05 22:56:27 -04:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:text="@string/map_select_download_region"
|
2022-10-05 22:56:27 -04:00
|
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
2022-10-06 13:16:51 -04:00
|
|
|
android:textColor="@color/colourGrey"
|
2022-10-06 17:08:35 -04:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/toggleButton"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2022-10-05 22:56:27 -04:00
|
|
|
|
2022-10-06 13:16:51 -04:00
|
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
|
|
|
android:id="@+id/toggleButton"
|
2022-10-06 17:08:35 -04:00
|
|
|
style="?attr/materialButtonToggleGroupStyle"
|
2022-10-06 13:16:51 -04:00
|
|
|
android:layout_width="match_parent"
|
2022-10-05 22:56:27 -04:00
|
|
|
android:layout_height="wrap_content"
|
2022-10-06 13:16:51 -04:00
|
|
|
android:gravity="center"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/cache_estimate">
|
2022-10-05 22:56:27 -04:00
|
|
|
|
2022-10-06 13:16:51 -04:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/box5miles"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:text="@string/map_5_miles"
|
2022-10-06 13:16:51 -04:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/cache_estimate"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/box10miles"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2022-10-05 22:56:27 -04:00
|
|
|
|
2022-10-06 13:16:51 -04:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/box10miles"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:text="@string/map_10_miles"
|
2022-10-06 13:16:51 -04:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/cache_estimate"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/box15miles"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/box5miles" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/box15miles"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:text="@string/map_15_miles"
|
2022-10-06 13:16:51 -04:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/cache_estimate"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/box10miles" />
|
|
|
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
2022-10-05 22:56:27 -04:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/cache_estimate"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:text="@string/map_tile_download_estimate"
|
2022-10-05 22:56:27 -04:00
|
|
|
android:textColor="@color/colourGrey"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/executeJob"
|
2022-10-06 17:08:35 -04:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2022-10-05 22:56:27 -04:00
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/executeJob"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:text="@string/map_start_download"
|
2022-10-05 22:56:27 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
2022-10-06 17:08:35 -04:00
|
|
|
<Button
|
|
|
|
|
android:id="@+id/cancelDownload"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2022-10-07 17:33:12 -04:00
|
|
|
android:text="@string/cancel"
|
2022-10-06 17:08:35 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
2022-10-05 22:56:27 -04:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
2022-08-24 12:16:57 -04:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2022-09-22 08:35:33 -04:00
|
|
|
android:id="@+id/downloadButton"
|
2022-08-24 12:16:57 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_margin="8dp"
|
2022-10-01 22:47:53 -04:00
|
|
|
android:backgroundTint="@color/buttonColor"
|
2022-12-28 17:37:25 -03:00
|
|
|
android:contentDescription="@string/map_download_region"
|
2022-08-24 12:16:57 -04:00
|
|
|
android:orientation="vertical"
|
2022-10-01 22:47:53 -04:00
|
|
|
android:src="@android:drawable/stat_sys_download"
|
2022-09-22 08:35:33 -04:00
|
|
|
android:visibility="visible"
|
2022-08-24 12:16:57 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2022-10-01 22:47:53 -04:00
|
|
|
tools:background="@color/buttonColor" />
|
2022-02-17 10:38:33 -05:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|