summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2023-12-26 03:12:52 +0100
committerLeonard Kugis <leonard@kug.is>2023-12-26 03:12:52 +0100
commit18b2098a4f4885fe11f7bc83693d329d870bb21b (patch)
tree72373b3ce4dfaf3dc196a375116d7f9f532247a3 /app/src/main/res/layout
parent1490f34152152e6f42d4a2ca5828058cb5ab9904 (diff)
Fixed fake location parameters entry
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_fake_location.xml108
1 files changed, 44 insertions, 64 deletions
diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml
index 5483bc2..7890edc 100644
--- a/app/src/main/res/layout/fragment_fake_location.xml
+++ b/app/src/main/res/layout/fragment_fake_location.xml
@@ -84,84 +84,63 @@
/>
</RadioGroup>
- <LinearLayout
- android:layout_height="match_parent"
- android:padding="16dp"
+ <com.google.android.material.textfield.TextInputLayout
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
+ android:id="@+id/textlayout_altitude"
+ android:hint="@string/location_altitude"
+ android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal"
- tools:context=".main.MainActivity"
+ android:layout_marginTop="16dp"
+ app:endIconDrawable="@drawable/ic_valid"
+ app:endIconMode="custom"
+ app:endIconTint="@color/green_valid"
>
-
- <TextView
- android:id="@+id/fake_location_info_altitude"
- android:layout_gravity="center_horizontal"
- android:layout_height="wrap_content"
- android:layout_width="0dp"
- android:text="@string/location_altitude"
- android:lineSpacingExtra="5sp"
- />
-
- <EditText
- android:id="@+id/altitude"
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/edittext_altitude"
android:inputType="numberDecimal"
- android:layout_width="wrap_content"
- android:layout_height="24dp"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
/>
+ </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
-
- <LinearLayout
- android:layout_height="match_parent"
- android:padding="16dp"
+ <com.google.android.material.textfield.TextInputLayout
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
+ android:id="@+id/textlayout_speed"
+ android:hint="@string/location_speed"
+ android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal"
- tools:context=".main.MainActivity"
+ android:layout_marginTop="16dp"
+ app:endIconDrawable="@drawable/ic_valid"
+ app:endIconMode="custom"
+ app:endIconTint="@color/green_valid"
>
-
- <TextView
- android:id="@+id/fake_location_info_speed"
- android:layout_gravity="center_horizontal"
- android:layout_height="wrap_content"
- android:layout_width="0dp"
- android:text="@string/location_speed"
- android:lineSpacingExtra="5sp"
- />
-
- <EditText
- android:id="@+id/speed"
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/edittext_speed"
android:inputType="numberDecimal"
- android:layout_width="wrap_content"
- android:layout_height="24dp"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
/>
+ </com.google.android.material.textfield.TextInputLayout>
- </LinearLayout>
-
- <LinearLayout
- android:layout_height="match_parent"
- android:padding="16dp"
+ <com.google.android.material.textfield.TextInputLayout
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
+ android:id="@+id/textlayout_jitter"
+ android:hint="@string/location_jitter"
+ android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:orientation="horizontal"
- tools:context=".main.MainActivity"
+ android:layout_marginTop="16dp"
+ app:endIconDrawable="@drawable/ic_valid"
+ app:endIconMode="custom"
+ app:endIconTint="@color/green_valid"
>
-
- <TextView
- android:id="@+id/fake_location_info_jitter"
- android:layout_gravity="center_horizontal"
- android:layout_height="wrap_content"
- android:layout_width="0dp"
- android:text="@string/location_jitter"
- android:lineSpacingExtra="5sp"
- />
-
- <EditText
- android:id="@+id/jitter"
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/edittext_jitter"
android:inputType="numberDecimal"
- android:layout_width="wrap_content"
- android:layout_height="24dp"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
/>
-
- </LinearLayout>
-
+ </com.google.android.material.textfield.TextInputLayout>
+<!--
<LinearLayout
android:layout_height="match_parent"
android:padding="16dp"
@@ -187,6 +166,7 @@
/>
</LinearLayout>
+-->
<FrameLayout
android:layout_marginTop="16dp"