diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2016-08-23 12:53:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 12:53:36 +0200 |
commit | 50da6e5e715f0356f430fba176dea13d15fe9d52 (patch) | |
tree | 312f52f0e2294c10ff722289753473fc59f061ef /platform/android/MapboxGLAndroidSDKTestApp/src/main/res | |
parent | e1a6795a73af844ff63d99b35fb4695177d9494d (diff) | |
download | qtlocation-mapboxgl-50da6e5e715f0356f430fba176dea13d15fe9d52.tar.gz |
6039 focal point uses MyLocationView padding (#6108)
* [android] - don't auto tint drawables + formatting
* [android] - formatting
* [android] #6039 - fixes focal point when padding mylocationview
* [android] #5977 - MyLocationView.setPadding example + formatting Manifest
* [android] - Reset to default configuration, cleanup class
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res')
3 files changed, 26 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/ic_taxi_top_small.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/ic_taxi_top_small.png Binary files differnew file mode 100644 index 0000000000..e04c199160 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/drawable-xxxhdpi/ic_taxi_top_small.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_car_driving.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_car_driving.xml new file mode 100644 index 0000000000..c61055ee4e --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_car_driving.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout 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:orientation="vertical"> + + <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" + app:my_location_foreground_tint="@color/primary" + app:my_location_accuracy_tint="@color/primary" + app:style_url="@string/style_mapbox_streets" + app:zoom="15" /> + +</LinearLayout> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml index 4436e40200..d8f2edd85e 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml @@ -38,6 +38,7 @@ <!-- Navigation --> <string name="activity_location_picker">Location Picker</string> + <string name="activity_car_driving">Driving animation</string> <!-- Other --> <string name="activity_double_map">Double Map Activity</string> @@ -106,6 +107,7 @@ <string name="description_query_rendered_feature_properties_point">Query rendered feature properties on click</string> <string name="description_query_rendered_features_box_count">Count all rendered features in box</string> <string name="description_query_rendered_features_box_highlight">Hightligh buildings in box</string> + <string name="description_car_driving">MyLocationView follow map update example</string> <string name="menuitem_title_concurrent_infowindow">Concurrent Open InfoWindows</string> <string name="menuitem_title_deselect_markers_on_tap">Deselect Markers On Tap</string> |