summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorjacquarg <guillaume.jacquart@hoodbrains.com>2021-10-30 10:18:31 +0200
committerjacquarg <guillaume.jacquart@hoodbrains.com>2021-10-30 10:19:11 +0200
commit2ec4e4e78d28cbf703eefe2497a01d37af7b1c35 (patch)
tree6d8706aad315da6e72cc2999f49d50aca73a5e44 /app/src/main/res/layout
parent366e4ffa04e8d301794e613b89ed918df0b59517 (diff)
update UI on fake location
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_fake_location.xml78
1 files changed, 32 insertions, 46 deletions
diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml
index d60513b..558fde0 100644
--- a/app/src/main/res/layout/fragment_fake_location.xml
+++ b/app/src/main/res/layout/fragment_fake_location.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
+<layout>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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"
@@ -18,7 +19,7 @@
<LinearLayout
android:layout_height="match_parent"
- android:layout_marginBottom="32dp"
+ android:padding="16dp"
android:layout_width="match_parent"
android:orientation="vertical"
tools:context=".main.MainActivity"
@@ -29,25 +30,8 @@
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:paddingLeft="32dp"
- android:paddingRight="32dp"
- android:paddingTop="16dp"
- android:text="@string/fake_location_info"
- android:textColor="@color/black"
- android:textSize="14sp"
- />
-
- <TextView
- android:fontFamily="sans-serif-medium"
- android:gravity="center_vertical"
- android:id="@+id/learn_more_fake_location"
- android:layout_height="48dp"
- android:layout_width="wrap_content"
- android:paddingLeft="32dp"
- android:paddingRight="32dp"
- android:text="@string/learn_more"
- android:textColor="#007fff"
- android:textSize="14sp"
+ android:text="@string/location_info"
+ android:lineSpacingExtra="5sp"
/>
<RadioGroup
@@ -55,56 +39,56 @@
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
- android:paddingLeft="32dp"
- android:paddingRight="32dp"
+ android:layout_marginTop="16dp"
>
<foundation.e.privacycentralapp.common.RightRadioButton
android:id="@+id/radio_use_real_location"
- android:layout_height="wrap_content"
+ android:layout_height="52dp"
android:layout_width="match_parent"
- android:text="@string/use_real_location"
- android:textSize="16sp"
+ android:text="@string/location_use_real_location"
+ android:textSize="14sp"
/>
<foundation.e.privacycentralapp.common.RightRadioButton
android:id="@+id/radio_use_random_location"
- android:layout_height="wrap_content"
+ android:layout_height="52dp"
android:layout_width="match_parent"
- android:text="@string/use_random_location"
- android:textSize="16sp"
+ android:text="@string/location_use_random_location"
+ android:textSize="14sp"
/>
<foundation.e.privacycentralapp.common.RightRadioButton
android:id="@+id/radio_use_specific_location"
- android:layout_height="wrap_content"
+ android:layout_height="52dp"
android:layout_width="match_parent"
- android:text="@string/use_specific_location"
- android:textSize="16sp"
+ android:text="@string/location_use_specific_location"
+ android:textSize="14sp"
/>
</RadioGroup>
<foundation.e.privacycentralapp.features.location.FakeLocationMapView
android:id="@+id/mapView"
- android:layout_height="240dp"
- android:layout_marginBottom="16dp"
- android:layout_marginTop="32dp"
+ android:layout_height="220dp"
+ android:layout_marginTop="16dp"
android:layout_width="match_parent"
mapbox:mapbox_cameraZoom="8"
/>
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
- android:hint="@string/longitude"
- android:id="@+id/edittext_longitude"
+ android:hint="@string/location_hint_longitude"
+ android:id="@+id/textlayout_longitude"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:paddingLeft="32dp"
- android:paddingRight="32dp"
+ android:layout_marginTop="16dp"
+ app:endIconDrawable="@drawable/ic_valid"
+ app:endIconMode="custom"
+ app:endIconTint="@color/green_valid"
>
-
<com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/edittext_longitude"
android:inputType="numberDecimal"
android:layout_height="wrap_content"
android:layout_width="match_parent"
@@ -113,16 +97,17 @@
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
- android:hint="@string/latitude"
- android:id="@+id/edittext_latitude"
+ android:id="@+id/textlayout_latitude"
+ android:hint="@string/location_hint_latitude"
android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
android:layout_width="match_parent"
- android:paddingLeft="32dp"
- android:paddingRight="32dp"
+ android:layout_marginTop="16dp"
+ app:endIconDrawable="@drawable/ic_valid"
+ app:endIconMode="custom"
+ app:endIconTint="@color/green_valid"
>
-
<com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/edittext_latitude"
android:inputType="numberDecimal"
android:layout_height="wrap_content"
android:layout_width="match_parent"
@@ -131,4 +116,5 @@
</LinearLayout>
</androidx.core.widget.NestedScrollView>
-</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
+</layout>