summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobrun Van Nuland <tobrun.van.nuland@gmail.com>2017-09-26 15:06:37 +0200
committerTobrun Van Nuland <tobrun.van.nuland@gmail.com>2017-09-26 15:06:37 +0200
commit29bb42c3d6cd33381da125d7d0cf413eda498e2a (patch)
tree7e14825b84f7fc3dd5fdc04bf83ae51ff8c230fa
parent2f4cc7e4665d6e280bf1770f348fe069ebd928bc (diff)
downloadqtlocation-mapboxgl-upstream/tvn-init-view-position.tar.gz
[android] - init overlain views on default locationupstream/tvn-init-view-position
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml
index e2f1823327..f91075d265 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml
+++ b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapbox_mapview_internal.xml
@@ -31,6 +31,8 @@
android:id="@+id/logoView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_gravity="bottom|start"
+ android:layout_margin="@dimen/mapbox_four_dp"
android:contentDescription="@null"
android:src="@drawable/mapbox_logo_icon"/>
@@ -38,9 +40,14 @@
android:id="@+id/attributionView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:layout_marginBottom="4dp"
+ android:layout_gravity="bottom|start"
+ android:layout_marginEnd="@dimen/mapbox_four_dp"
+ android:layout_marginLeft="@dimen/mapbox_ninety_two_dp"
+ android:layout_marginRight="@dimen/mapbox_four_dp"
+ android:layout_marginStart="@dimen/mapbox_ninety_two_dp"
+ android:layout_marginTop="@dimen/mapbox_four_dp"
android:adjustViewBounds="true"
- android:clickable="true"
- android:focusable="true"
android:contentDescription="@string/mapbox_attributionsIconContentDescription"
android:src="@drawable/mapbox_info_bg_selector"/>