diff options
author | Brad Leege <bleege@gmail.com> | 2016-06-08 13:07:52 -0500 |
---|---|---|
committer | Ivo van Dongen <info@ivovandongen.nl> | 2016-06-17 19:54:27 +0200 |
commit | 2591147e25d6ed74f091bed97f57fb4591e7bde6 (patch) | |
tree | 373c3373ee2ef15e6a5798093e73f31544c3cb09 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout | |
parent | 11dd4afc5b271c4efb0e900320bdca4d137cd049 (diff) | |
download | qtlocation-mapboxgl-2591147e25d6ed74f091bed97f57fb4591e7bde6.tar.gz |
[android] Setting up LocationPickerActivity infrastructure
Fixes #5282
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout')
2 files changed, 62 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_location_picker.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_location_picker.xml new file mode 100644 index 0000000000..f9fe77bfec --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_location_picker.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.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_width="match_parent" + android:layout_height="match_parent" + android:layout_below="@id/toolbar"/> + + <ImageButton + android:id="@+id/clearDisplayViewButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_clear_24dp" + android:background="@color/accent" + android:visibility="gone" + android:layout_marginLeft="@dimen/full_button_margin" + android:layout_above="@+id/selectLocationButton" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true"/> + + <Button + android:id="@+id/selectLocationButton" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_margin="@dimen/full_button_margin" + android:background="@color/primary" + android:text="@string/navigation_select_location_button_text" + android:textColor="@android:color/white" + android:layout_alignParentBottom="true"/> + +</RelativeLayout> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/view_pulse_marker.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/view_pulse_marker.xml new file mode 100644 index 0000000000..e1ac50b440 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/view_pulse_marker.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="48dp" + android:layout_height="48dp"> + + <ImageView + android:id="@+id/foreground_imageView" + android:layout_width="@dimen/circle_size" + android:layout_height="@dimen/circle_size" + android:layout_gravity="center" + android:src="@drawable/ic_circle"/> + + <ImageView + android:id="@+id/background_imageview" + android:layout_width="@dimen/circle_size" + android:layout_height="@dimen/circle_size" + android:layout_gravity="center" + android:alpha="0.5" + android:src="@drawable/ic_circle"/> + +</FrameLayout>
\ No newline at end of file |