diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2016-09-29 18:58:58 +0200 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2016-09-30 14:57:26 +0200 |
commit | d4888cb39d0c52e23068b579af6beeb04ecb5714 (patch) | |
tree | 90d09dc7f3dd813f29875f8375494503ef3f94df /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout | |
parent | bb4c274a02f959e568117eb0e4bdfa66af33794a (diff) | |
download | qtlocation-mapboxgl-d4888cb39d0c52e23068b579af6beeb04ecb5714.tar.gz |
[android] file:// example
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_style_file.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_style_file.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_style_file.xml new file mode 100644 index 0000000000..086b18fea1 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_style_file.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout 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" + android:orientation="vertical"> + + <android.support.v7.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="@color/primary" + android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> + + <com.mapbox.mapboxsdk.maps.MapView + android:id="@id/mapView" + android:layout_below="@id/toolbar" + android:layout_width="match_parent" + app:center_latitude="52.519003" + app:center_longitude="13.400972" + app:style_url="@string/style_mapbox_streets" + app:zoom="16" + android:layout_height="match_parent"/> + + <android.support.design.widget.FloatingActionButton + android:id="@id/fab" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_margin="@dimen/fab_margin" + android:src="@drawable/ic_add_24dp" + app:backgroundTint="@android:color/white" /> + +</RelativeLayout> |