summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorjacquarg <guillaume.jacquart@hoodbrains.com>2021-11-08 09:40:00 +0100
committerjacquarg <guillaume.jacquart@hoodbrains.com>2021-11-12 17:47:23 +0100
commit187f4fdece966798dbd017d64b8f865b34dc28ed (patch)
tree40786f1ac62dc40798ceca31cb369375d4fe2bcd /app/src/main/res
parent5891ac8ea718dcb40014f5a90d2672f902eb6c55 (diff)
UI fixes on location
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_fake_location.xml38
-rw-r--r--app/src/main/res/values/colors.xml1
2 files changed, 34 insertions, 5 deletions
diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml
index 558fde0..851a7c4 100644
--- a/app/src/main/res/layout/fragment_fake_location.xml
+++ b/app/src/main/res/layout/fragment_fake_location.xml
@@ -68,13 +68,41 @@
</RadioGroup>
- <foundation.e.privacycentralapp.features.location.FakeLocationMapView
- android:id="@+id/mapView"
- android:layout_height="220dp"
+ <FrameLayout
android:layout_marginTop="16dp"
+ android:layout_height="220dp"
android:layout_width="match_parent"
- mapbox:mapbox_cameraZoom="8"
- />
+ >
+ <foundation.e.privacycentralapp.features.location.FakeLocationMapView
+ android:id="@+id/mapView"
+ android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ mapbox:mapbox_cameraZoom="8"
+ />
+ <ImageView
+ android:id="@+id/centered_marker"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/mapbox_marker_icon_default"
+ android:layout_gravity="center"
+ android:visibility="gone"
+ />
+ <View
+ android:id="@+id/map_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/grey_overlay"
+ android:visibility="visible"
+ />
+ <ProgressBar
+ android:id="@+id/map_loader"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:layout_margin="24dp"
+ android:layout_gravity="center"
+ android:visibility="visible"
+ />
+ </FrameLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 85f0c70..f0414b6 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -16,6 +16,7 @@
<color name="grey_text">#99000000</color>
<color name="grey_text_2">#61000000</color>
<color name="grey_divider">#14212121</color>
+ <color name="grey_overlay">#66FFFFFF</color>
<color name="orange_off">#FC7222</color>
<color name="green_on">#169659</color>