From 0b5a9942463929f6a73d33c5ce15f2e2c5e4f721 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Mon, 25 Apr 2016 18:23:14 -0500 Subject: [PATCH] [android] #4835 - Initial setup of MyLocationToggle UI --- .../src/main/AndroidManifest.xml | 8 +++ .../MyLocationToggleActivity.java | 60 +++++++++++++++++++ .../layout/activity_my_location_toggle.xml | 23 +++++++ .../src/main/res/values/strings.xml | 2 + 4 files changed, 93 insertions(+) create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MyLocationToggleActivity.java create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_my_location_toggle.xml diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml index 58eaef912..e5bf9397b 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml @@ -145,6 +145,14 @@ android:name="@string/category" android:value="@string/category_userlocation" /> + + + + + + + + + + diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml index 3d7de0704..29602776c 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml @@ -37,6 +37,7 @@ Snapshot Activity User tracking mode User location customization + User location toggle Custom Layer Map Padding Debug Mode @@ -46,6 +47,7 @@ Tracks the location of the user Customize the location of the user + Toggle location of the user on and off Overlay a custom native layer on the map Learn how to create a custom InfoWindow CameraPosition capabilities