summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2018-10-19 12:21:58 +0200
committerTobrun <tobrun@mapbox.com>2018-11-14 16:25:10 +0100
commit6ea511b65bc2aaf265684b01d91ea16692a95f7f (patch)
tree72d4eadf439aff8c13ac053ee226daf27c716789 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml
parentbb5b558f21c56872127540c7c5b0324d6286e505 (diff)
downloadqtlocation-mapboxgl-6ea511b65bc2aaf265684b01d91ea16692a95f7f.tar.gz
[android] - add example of showing a MapView inside a ViewPager inside RecyclerView
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml
new file mode 100644
index 0000000000..9a0c882602
--- /dev/null
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.mapbox.mapboxsdk.testapp.view.MapViewPager
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/viewpager"
+ android:layout_width="match_parent"
+ android:layout_height="256dp">
+
+ <android.support.v4.view.PagerTabStrip
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="top"
+ android:paddingBottom="4dp"
+ android:paddingTop="4dp"/>
+
+</com.mapbox.mapboxsdk.testapp.view.MapViewPager>
+