diff options
author | Tobrun Van Nuland <tobrun.van.nuland@gmail.com> | 2016-07-13 13:51:50 +0200 |
---|---|---|
committer | Tobrun Van Nuland <tobrun.van.nuland@gmail.com> | 2016-07-13 14:48:55 +0200 |
commit | 081c61dcc2b4db523a3c359c0ffa206d99ff0923 (patch) | |
tree | 687c4e3875c8b671c28ee77115e2f5a5543c8b28 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout | |
parent | cbfc9bc33cecd2a321e45bba3292027d589aea30 (diff) | |
download | qtlocation-mapboxgl-081c61dcc2b4db523a3c359c0ffa206d99ff0923.tar.gz |
[android] #5652 - fix PressForMarkerActivity setup to follow best practices of loading a style and initial location of a MapView as early as possible.
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_press_for_marker.xml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_press_for_marker.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_press_for_marker.xml index 9378900dc3..7bc26e17c2 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_press_for_marker.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_press_for_marker.xml @@ -1,8 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> + android:layout_width="match_parent" + android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:orientation="vertical"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" @@ -15,6 +16,10 @@ android:id="@+id/pressForMarkerMapView" android:layout_width="match_parent" android:layout_height="wrap_content" + app:center_latitude="45.1855569" + app:center_longitude="5.7215506" + app:zoom="11" + app:style_url="@string/style_mapbox_streets" android:layout_below="@id/toolbar"/> </RelativeLayout> |