diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_map_marker_blue.xml | 11 | ||||
-rw-r--r-- | app/src/main/res/drawable/ic_map_marker_red.xml | 28 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_fake_location.xml | 12 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 |
4 files changed, 48 insertions, 5 deletions
diff --git a/app/src/main/res/drawable/ic_map_marker_blue.xml b/app/src/main/res/drawable/ic_map_marker_blue.xml new file mode 100644 index 0000000..619dc47 --- /dev/null +++ b/app/src/main/res/drawable/ic_map_marker_blue.xml @@ -0,0 +1,11 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="512" + android:viewportHeight="512" + > + <path + android:fillColor="#FF5290F5" + android:pathData="M256,0C153.755,0 70.573,83.182 70.573,185.426c0,126.888 165.939,313.167 173.004,321.035c6.636,7.391 18.222,7.378 24.846,0c7.065,-7.868 173.004,-194.147 173.004,-321.035C441.425,83.182 358.244,0 256,0zM256,278.719c-51.442,0 -93.292,-41.851 -93.292,-93.293S204.559,92.134 256,92.134s93.291,41.851 93.291,93.293S307.441,278.719 256,278.719z" + /> +</vector> diff --git a/app/src/main/res/drawable/ic_map_marker_red.xml b/app/src/main/res/drawable/ic_map_marker_red.xml new file mode 100644 index 0000000..48fae25 --- /dev/null +++ b/app/src/main/res/drawable/ic_map_marker_red.xml @@ -0,0 +1,28 @@ +<!-- + ~ Copyright (C) 2021 E FOUNDATION + ~ + ~ This program is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ This program is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with this program. If not, see <https://www.gnu.org/licenses/>. + --> + +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="512" + android:viewportHeight="512" + > + <path + android:fillColor="#FFEA4335" + android:pathData="M256,0C153.755,0 70.573,83.182 70.573,185.426c0,126.888 165.939,313.167 173.004,321.035c6.636,7.391 18.222,7.378 24.846,0c7.065,-7.868 173.004,-194.147 173.004,-321.035C441.425,83.182 358.244,0 256,0zM256,278.719c-51.442,0 -93.292,-41.851 -93.292,-93.293S204.559,92.134 256,92.134s93.291,41.851 93.291,93.293S307.441,278.719 256,278.719z" + /> +</vector> diff --git a/app/src/main/res/layout/fragment_fake_location.xml b/app/src/main/res/layout/fragment_fake_location.xml index 1ebe9ef..38faf67 100644 --- a/app/src/main/res/layout/fragment_fake_location.xml +++ b/app/src/main/res/layout/fragment_fake_location.xml @@ -1,6 +1,7 @@ <?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:mapbox="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" @@ -98,13 +99,14 @@ /> </RadioGroup> - <ImageView - android:id="@+id/dummy_img_map" + + <foundation.e.privacycentralapp.features.location.FakeLocationMapView + android:id="@+id/mapView" android:layout_width="match_parent" - android:layout_height="254dp" + android:layout_height="240dp" + mapbox:mapbox_cameraZoom="15" android:layout_marginTop="32dp" android:layout_marginBottom="32dp" - android:src="@drawable/dummy_img_map_picker" /> <com.google.android.material.textfield.TextInputLayout @@ -143,9 +145,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" + android:layout_marginTop="32dp" android:text="@string/add_location" app:backgroundTint="#007fff" - android:layout_marginTop="32dp" /> </LinearLayout> </androidx.core.widget.NestedScrollView> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ff0cf0a..c0b8348 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,4 +35,6 @@ <string name="real_location_mode">Real location mode</string> <string name="random_location_mode">Random location mode</string> <string name="fake_location_mode">Fake location mode</string> + <string name="user_location_permission_explanation">This app needs location permissions in order to show its functionality.</string> + <string name="user_location_permission_not_granted">You didn\'t grant location permission</string> </resources>
\ No newline at end of file |