diff options
Diffstat (limited to 'app/src/main/res/layout/fragment_fake_location.xml')
| -rw-r--r-- | app/src/main/res/layout/fragment_fake_location.xml | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml new file mode 100644 index 0000000..1b02f86 --- /dev/null +++ b/app/src/main/res/layout/fragment_fake_location.xml @@ -0,0 +1,151 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout 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" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/white" + > + + <Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?android:attr/actionBarSize" + android:layout_gravity="top|center" + android:background="@color/white" + tools:layout_height="56dp" + /> + + <androidx.core.widget.NestedScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginTop="?android:attr/actionBarSize" + android:layout_marginBottom="32dp" + > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="32dp" + android:paddingRight="32dp" + tools:context=".main.MainActivity" + > + + <TextView + android:id="@+id/fake_location_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:paddingTop="16dp" + android:text="@string/fake_location_info" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <TextView + android:id="@+id/learn_more_fake_location" + android:layout_width="wrap_content" + android:layout_height="48dp" + android:fontFamily="sans-serif-medium" + android:gravity="center_vertical" + android:text="@string/learn_more" + android:textColor="#007fff" + android:textSize="14sp" + /> + + <TextView + android:id="@+id/my_location_header" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="sans-serif-medium" + android:paddingTop="16dp" + android:paddingBottom="8dp" + android:text="@string/my_location_title" + android:textColor="@color/black" + android:textSize="14sp" + /> + + <RadioGroup + android:id="@+id/location_choices" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + > + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_use_real_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/use_real_location" + android:textSize="16sp" + /> + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_use_random_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/use_random_location" + android:textSize="16sp" + /> + + <foundation.e.privacycentralapp.common.RightRadioButton + android:id="@+id/radio_use_specific_location" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/use_specific_location" + android:textSize="16sp" + /> + </RadioGroup> + + <ImageView + android:layout_width="match_parent" + android:layout_height="254dp" + android:layout_marginTop="32dp" + android:layout_marginBottom="32dp" + android:src="@drawable/dummy_img_map_picker" + /> + + <com.google.android.material.textfield.TextInputLayout + android:id="@+id/edittext_longitude" + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/longitude" + > + + <com.google.android.material.textfield.TextInputEditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="numberDecimal" + /> + </com.google.android.material.textfield.TextInputLayout> + + <com.google.android.material.textfield.TextInputLayout + android:id="@+id/edittext_latitude" + style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="16dp" + android:hint="@string/latitude" + > + + <com.google.android.material.textfield.TextInputEditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="numberDecimal" + /> + </com.google.android.material.textfield.TextInputLayout> + + <Button + android:id="@+id/button_add_location" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="@string/add_location" + app:backgroundTint="#007fff" + android:layout_marginTop="32dp" + /> + </LinearLayout> + </androidx.core.widget.NestedScrollView> +</FrameLayout>
\ No newline at end of file |
