summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout
diff options
context:
space:
mode:
authorCameron Mace <cameron@mapbox.com>2016-08-31 11:56:57 -0400
committerGitHub <noreply@github.com>2016-08-31 11:56:57 -0400
commitfe28b57fe08bcd1069dad8fd47827da6bd835285 (patch)
tree514e6af956d56634cd98cb5e44d7d49b7bd0d975 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout
parent1e2189266ffd9d831619f2c507f55596029fbec3 (diff)
downloadqtlocation-mapboxgl-fe28b57fe08bcd1069dad8fd47827da6bd835285.tar.gz
[android] added video view example (#6198)
* [android] added video view example * removed map ready callback
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_video_view.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_video_view.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_video_view.xml
new file mode 100644
index 0000000000..25b589260e
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_video_view.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ 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"
+ tools:context=".activity.maplayout.VideoViewActivity">
+
+ <android.support.v7.widget.Toolbar
+ android:id="@id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ android:background="@color/primary"
+ android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
+
+ <VideoView
+ android:id="@+id/video_view"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:layout_margin="16dp"/>
+
+ <com.mapbox.mapboxsdk.maps.MapView
+ android:id="@+id/map_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_below="@id/toolbar"
+ mapbox:center_latitude="34.4021"
+ mapbox:center_longitude="-119.7081"
+ mapbox:attribution_gravity="top"
+ mapbox:logo_gravity="top"
+ mapbox:style_url="mapbox://styles/mapbox/streets-v9"
+ mapbox:zoom="13"/>
+
+</RelativeLayout> \ No newline at end of file