diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_fake_location.xml | 108 |
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" |