From 533a3edb9c0d612d8ebcf4e0bfba24f9cb604f81 Mon Sep 17 00:00:00 2001 From: Tobrun Date: Tue, 2 Aug 2016 16:53:19 -0400 Subject: [PATCH] [android] #5801 - add setMediaOverlay example for a secondary SurfaceView --- .../src/main/AndroidManifest.xml | 13 +- .../SurfaceViewMediaControlActivity.java | 142 ++++++++++++++++++ .../activity_surfaceview_mediacontrols.xml | 31 ++++ .../src/main/res/values/strings.xml | 2 + 4 files changed, 185 insertions(+), 3 deletions(-) create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/SurfaceViewMediaControlActivity.java create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_surfaceview_mediacontrols.xml diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml index 9dc203723..cafca6213 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml @@ -316,11 +316,18 @@ android:name="@string/category" android:value="@string/category_imagegenerator" /> - + + + - - + + + + + + + + + + + diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml index eb6129900..00c421bfe 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml @@ -55,6 +55,7 @@ ViewPager Runtime Style Print a map + SurfaceView MediaOverlay Android SDK View integration @@ -96,6 +97,7 @@ Adopt the map style on the fly Shows how to print a map Test animation of Android SDK View components + Test overlaying SurfaceView Concurrent Open InfoWindows Deselect Markers On Tap