diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2019-06-24 09:08:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 09:08:26 +0200 |
commit | e60b48eca9e752a09e54d4b1277ac1ab6aec5629 (patch) | |
tree | 6b452cd90e2257eaeca97ea1f6140b3784a669cb /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_latlngbounds.xml | |
parent | f7f74a6deb57ad4ac22a30604a0dce39024feca2 (diff) | |
download | qtlocation-mapboxgl-e60b48eca9e752a09e54d4b1277ac1ab6aec5629.tar.gz |
[android] - update LatLngBounds example with animating bottomsheet scroll behavior (#14924)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_latlngbounds.xml')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_latlngbounds.xml | 63 |
1 files changed, 37 insertions, 26 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_latlngbounds.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_latlngbounds.xml index e565c3c9d1..e25fd1882c 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_latlngbounds.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_latlngbounds.xml @@ -1,36 +1,47 @@ <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - android:id="@+id/coordinator_layout" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:fitsSystemWindows="true" - android:orientation="vertical"> - - <com.mapbox.mapboxsdk.maps.MapView - android:id="@id/mapView" + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/coordinator_layout" android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_behavior="@string/appbar_scrolling_view_behavior"/> + android:fitsSystemWindows="true" + android:orientation="vertical"> + + <com.mapbox.mapboxsdk.maps.MapView + android:id="@id/mapView" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:layout_behavior="@string/appbar_scrolling_view_behavior"/> <android.support.v4.widget.NestedScrollView - android:id="@+id/bottom_sheet" - android:layout_width="match_parent" - android:layout_height="375dp" - android:background="@color/primaryDark" - app:behavior_hideable="true" - app:behavior_skipCollapsed="false" - app:layout_behavior="com.mapbox.mapboxsdk.testapp.view.LockableBottomSheetBehavior"/> + android:id="@+id/bottomSheet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/primaryDark" + app:behavior_hideable="true" + app:behavior_peekHeight="375dp" + app:layout_behavior="android.support.design.widget.BottomSheetBehavior"> + + <TextView + android:text="Hello World" + android:gravity="center" + android:textSize="120sp" + android:textColor="@android:color/white" + android:background="@color/primary" + android:layout_width="match_parent" + android:layout_height="375dp"/> + + </android.support.v4.widget.NestedScrollView> <android.support.design.widget.FloatingActionButton - android:id="@+id/fab" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_margin="@dimen/fab_margin" - android:src="@drawable/ic_arrow_downward" - app:backgroundTint="@color/primary" - app:layout_anchor="@id/bottom_sheet" - app:layout_anchorGravity="top|end"/> + android:id="@+id/fab" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="@dimen/fab_margin" + android:src="@drawable/ic_arrow_upward" + app:backgroundTint="@color/primary" + app:layout_anchor="@id/bottomSheet" + app:layout_anchorGravity="top|end"/> </android.support.design.widget.CoordinatorLayout>
\ No newline at end of file |