diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2016-08-29 13:18:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-29 13:18:32 +0200 |
commit | ed431c925c425eb9f4cfa1793255238a5708f468 (patch) | |
tree | cfa424906a1e870ebcd059f9c3471fb94b5900a1 /platform/android/MapboxGLAndroidSDKTestApp/src/main/res | |
parent | f4be8260baa1e90e24ea066d0d3b28896cd138ad (diff) | |
download | qtlocation-mapboxgl-ed431c925c425eb9f4cfa1793255238a5708f468.tar.gz |
[android] #6083 - add circle example (#6086)
* add method addMarkerViews with only one invalidate
* [android] #6083 - add circle example
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_circlelayer.xml | 36 | ||||
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml | 4 |
2 files changed, 39 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_circlelayer.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_circlelayer.xml new file mode 100644 index 0000000000..086b18fea1 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_circlelayer.xml @@ -0,0 +1,36 @@ +<?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: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_below="@id/toolbar" + android:layout_width="match_parent" + app:center_latitude="52.519003" + app:center_longitude="13.400972" + app:style_url="@string/style_mapbox_streets" + app:zoom="16" + android:layout_height="match_parent"/> + + <android.support.design.widget.FloatingActionButton + android:id="@id/fab" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_margin="@dimen/fab_margin" + android:src="@drawable/ic_add_24dp" + app:backgroundTint="@android:color/white" /> + +</RelativeLayout> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml index d8f2edd85e..b72dd9a2ae 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml @@ -61,7 +61,8 @@ <string name="activity_query_rendered_feature_properties">Query feature properties</string> <string name="activity_query_rendered_features_box_count">Count features in box</string> <string name="activity_query_rendered_features_box_highlight">Highlight features in box</string> - <string name="title_activity_navigation_drawer">Android SDK View integration</string> + <string name="activity_circle">Add Circle</string> + <string name="activity_navigation_drawer">Android SDK View integration</string> <!-- Description --> <string name="description_user_location_tracking">Tracks the location of the user</string> @@ -100,6 +101,7 @@ <string name="description_location_picker">Use a fixed Marker to select your location</string> <string name="description_viewpager">Use SupportMapFragments in a ViewPager</string> <string name="description_runtime_style">Adopt the map style on the fly</string> + <string name="description_circle">Use GeoJson source to show a circle</string> <string name="description_geojson_clustering">Use GeoJson sources and dynamic layers to cluster information</string> <string name="description_print">Shows how to print a map</string> <string name="description_navigation_drawer">Test animation of Android SDK View components</string> |