[android] - add example of showing a MapView inside a ViewPager inside RecyclerView

This commit is contained in:
Tobrun
2018-10-19 12:21:58 +02:00
committed by Tobrun
parent bb5b558f21
commit 6ea511b65b
7 changed files with 199 additions and 7 deletions

View File

@@ -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>

View File

@@ -77,4 +77,5 @@
<string name="description_location_fragment">Uses LocationComponent in a Fragment</string>
<string name="description_location_manual">Force location updates and don\'t rely on the engine</string>
<string name="description_recyclerview">Show a MapView as a recyclerView item</string>
<string name="description_nested_viewpager">Show a MapView inside a viewpager inside a recyclerView</string>
</resources>

View File

@@ -77,4 +77,5 @@
<string name="activity_location_fragment">Location Fragment</string>
<string name="activity_location_manual">Manual Location updates</string>
<string name="activity_recyclerview">RecyclerView</string>
<string name="activity_nested_viewpager">Nested ViewPager</string>
</resources>