blob: 3c709e9ca855a30e16946232020ff647f80c7d81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:background="@color/background"
android:layout_height="match_parent"
android:layout_width="match_parent"
>
<include layout="@layout/topbar" />
<androidx.core.widget.NestedScrollView
android:layout_height="match_parent"
android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
>
<LinearLayout
android:layout_height="match_parent"
android:padding="16dp"
android:layout_width="match_parent"
android:orientation="vertical"
tools:context=".main.MainActivity"
>
<TextView
android:id="@+id/fake_location_info"
android:layout_gravity="center_horizontal"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/location_info"
android:lineSpacingExtra="5sp"
/>
<RadioGroup
android:id="@+id/location_choices"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_marginTop="16dp"
>
<foundation.e.advancedprivacy.common.RightRadioButton
android:id="@+id/radio_use_real_location"
android:layout_height="52dp"
android:layout_width="match_parent"
android:text="@string/location_use_real_location"
android:textSize="14sp"
/>
<foundation.e.advancedprivacy.common.RightRadioButton
android:id="@+id/radio_use_random_location"
android:layout_height="52dp"
android:layout_width="match_parent"
android:text="@string/location_use_random_location"
android:textSize="14sp"
/>
<foundation.e.advancedprivacy.common.RightRadioButton
android:id="@+id/radio_use_specific_location"
android:layout_height="52dp"
android:layout_width="match_parent"
android:text="@string/location_use_specific_location"
android:textSize="14sp"
/>
</RadioGroup>
<FrameLayout
android:layout_marginTop="16dp"
android:layout_height="220dp"
android:layout_width="match_parent"
>
<foundation.e.advancedprivacy.features.location.FakeLocationMapView
android:id="@+id/mapView"
android:layout_height="match_parent"
android:layout_width="match_parent"
/>
<ImageView
android:id="@+id/centered_marker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/maplibre_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"
android:hint="@string/location_hint_longitude"
android:id="@+id/textlayout_longitude"
android:layout_height="wrap_content"
android:layout_width="match_parent"
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|numberSigned"
android:layout_height="wrap_content"
android:layout_width="match_parent"
/>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:id="@+id/textlayout_latitude"
android:hint="@string/location_hint_latitude"
android:layout_height="wrap_content"
android:layout_width="match_parent"
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|numberSigned"
android:layout_height="wrap_content"
android:layout_width="match_parent"
/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>
|