From 7fb5c097bfad960160881fb8bed7f6965459f89a Mon Sep 17 00:00:00 2001 From: Antonio Zugaldia Date: Sun, 19 Jun 2016 16:55:43 -0400 Subject: [PATCH] [android] Add scaling marker activity to TestApp using the View Marker API Fixes #5409 --- .../src/main/AndroidManifest.xml | 8 + .../annotation/MarkerViewScaleActivity.java | 141 ++++++++++++++++++ .../res/layout/activity_marker_view_scale.xml | 60 ++++++++ .../src/main/res/values/strings.xml | 3 + 4 files changed, 212 insertions(+) create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/annotation/MarkerViewScaleActivity.java create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_marker_view_scale.xml diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml index 593ba8403..ac131cc9d 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml @@ -269,6 +269,14 @@ android:name="@string/category" android:value="@string/category_annotation" /> + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml index fba86a721..ae4dfaa9b 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml @@ -18,6 +18,7 @@ Polygon Press Map For Marker View Marker API + Scaling in the View Marker API Standard InfoWindow example @@ -84,8 +85,10 @@ 2 maps in a view hierarchy Restart map view after temporarily leaving to another activity Use an Android SDK View as marker + Scale a View Marker Learn how to create a dynamic custom InfoWindow Use a fixed Marker to select your location + Concurrent Open InfoWindows Deselect Markers On Tap Dismiss location tracking on gesture