diff options
author | Antonio Zugaldia <antonio@mapbox.com> | 2016-06-19 16:55:43 -0400 |
---|---|---|
committer | Antonio Zugaldia <antonio@mapbox.com> | 2016-06-20 13:17:08 -0400 |
commit | 7fb5c097bfad960160881fb8bed7f6965459f89a (patch) | |
tree | 6c06773cf1682909bff74e8354e50d4b353e31d8 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout | |
parent | b2ce41375c958c9259451b448936a5c344a0203e (diff) | |
download | qtlocation-mapboxgl-7fb5c097bfad960160881fb8bed7f6965459f89a.tar.gz |
[android] Add scaling marker activity to TestApp using the View Marker API
Fixes #5409
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_marker_view_scale.xml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_marker_view_scale.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_marker_view_scale.xml new file mode 100644 index 0000000000..c59f41539c --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_marker_view_scale.xml @@ -0,0 +1,60 @@ +<?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.support.v7.widget.Toolbar + android:id="@id/toolbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@color/primary" + android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="8dp"> + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="12dp" + android:paddingBottom="8dp" + android:textSize="20sp" + android:textColor="#FFFFFF" + android:text="Scaling in the View Marker API" /> + + <TextView + android:id="@+id/textview_factor" + android:layout_alignBottom="@+id/seekbar_factor" + android:layout_below="@id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Scale: 1" /> + + <SeekBar + android:id="@+id/seekbar_factor" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/title" + android:layout_marginLeft="56dp" + android:progress="0" /> + + </RelativeLayout> + + + </android.support.v7.widget.Toolbar> + + <com.mapbox.mapboxsdk.maps.MapView + android:id="@id/mapView" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_below="@id/toolbar" + app:center_latitude="38.907192" + app:center_longitude="-77.036871" + app:style_url="@string/style_mapbox_streets" + app:zoom="12" /> + +</RelativeLayout> |