diff options
author | Brad Leege <bleege@gmail.com> | 2016-04-26 11:41:44 -0500 |
---|---|---|
committer | Brad Leege <bleege@gmail.com> | 2016-04-26 17:07:23 -0500 |
commit | ef8cc24945ed16afbea7fb10c4355b43b4d2f198 (patch) | |
tree | 15da2fa66c5e1e5b6f346e1eb74f3d539cdbde92 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout | |
parent | 02d82c9f513d8ac1dfd1056db2375f8f7b95cc62 (diff) | |
download | qtlocation-mapboxgl-ef8cc24945ed16afbea7fb10c4355b43b4d2f198.tar.gz |
[android] #4835 - Adding FAB Toggle UI And Functionality
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_my_location_toggle.xml | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_my_location_toggle.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_my_location_toggle.xml index 0d7581b6ef..c795098f0a 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_my_location_toggle.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_my_location_toggle.xml @@ -1,8 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" + xmlns:mapbox="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical"> <android.support.v7.widget.Toolbar @@ -12,12 +13,27 @@ android:background="@color/primary" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/> - <com.mapbox.mapboxsdk.maps.MapView - android:id="@+id/mapView" + <android.support.design.widget.CoordinatorLayout + android:id="@+id/coordinatorLayout" android:layout_width="match_parent" - android:layout_height="match_parent" - app:access_token="@string/mapbox_access_token" - app:style_url="@string/style_mapbox_streets" - app:zoom="15" /> + android:layout_height="match_parent"> + + <com.mapbox.mapboxsdk.maps.MapView + android:id="@+id/mapView" + android:layout_width="match_parent" + android:layout_height="match_parent" + mapbox:access_token="@string/mapbox_access_token" + /> + + <android.support.design.widget.FloatingActionButton + android:id="@+id/fabLocationToggle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end|bottom" + android:layout_margin="@dimen/fab_margin" + android:src="@drawable/ic_my_location_24dp" + tools:backgroundTint="@color/primary" /> + + </android.support.design.widget.CoordinatorLayout> </LinearLayout> |