diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2018-10-19 12:21:58 +0200 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-11-14 16:25:10 +0100 |
commit | 6ea511b65bc2aaf265684b01d91ea16692a95f7f (patch) | |
tree | 72d4eadf439aff8c13ac053ee226daf27c716789 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout | |
parent | bb5b558f21c56872127540c7c5b0324d6286e505 (diff) | |
download | qtlocation-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')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/item_viewpager.xml | 17 |
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> + |