diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2016-08-12 12:22:20 -0400 |
---|---|---|
committer | Tobrun <tobrun.van.nuland@gmail.com> | 2016-08-12 22:19:28 -0400 |
commit | 834ff765c0dd393bcdc3609e392adf9a88d18cff (patch) | |
tree | d928173b5510d6031311a7bb78499e17bb72dc39 /platform/android/MapboxGLAndroidSDK/src/main/res | |
parent | d4271d993ee751e736dc21a4ccfd6f93319ff374 (diff) | |
download | qtlocation-mapboxgl-834ff765c0dd393bcdc3609e392adf9a88d18cff.tar.gz |
[android] #5968 - add support for a layout editor preview, show a drawable and some overlain items
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/res')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/res/drawable-xxhdpi/mapview_preview.png | bin | 0 -> 1071179 bytes | |||
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapview_preview.xml | 41 |
2 files changed, 41 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/res/drawable-xxhdpi/mapview_preview.png b/platform/android/MapboxGLAndroidSDK/src/main/res/drawable-xxhdpi/mapview_preview.png Binary files differnew file mode 100644 index 0000000000..27763f4c86 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDK/src/main/res/drawable-xxhdpi/mapview_preview.png diff --git a/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapview_preview.xml b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapview_preview.xml new file mode 100644 index 0000000000..d8f2193fd5 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDK/src/main/res/layout/mapview_preview.xml @@ -0,0 +1,41 @@ +<?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"> + + <ImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerCrop" + android:src="@drawable/mapview_preview" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_marginBottom="@dimen/eight_dp" + android:layout_marginLeft="@dimen/eight_dp" + android:contentDescription="@string/mapboxIconContentDescription" + android:src="@drawable/attribution_logo" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_marginBottom="@dimen/seven_dp" + android:layout_marginLeft="@dimen/seventy_six_dp" + android:background="@drawable/bg_default_selector" + android:clickable="true" + android:contentDescription="@string/attributionsIconContentDescription" + android:src="@drawable/ic_info_outline_24dp_selector" /> + + <ImageView + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_alignParentRight="true" + android:layout_margin="10dp" + android:src="@drawable/compass" /> + +</RelativeLayout>
\ No newline at end of file |