From 00dde25022840a86bfbdeea77c9f1824c10134d3 Mon Sep 17 00:00:00 2001 From: Tobrun Van Nuland Date: Fri, 15 Sep 2017 19:00:17 +0200 Subject: [android] - move strings resources to dedicated files, fixup simple map activity, fixup double map activity, snapshot activity home button click fix, add activity titles, remove obsolete navigation drawer activity --- .../res/layout/activity_animated_image_source.xml | 16 +- .../src/main/res/layout/activity_map_fragment.xml | 15 +- .../main/res/layout/activity_navigation_drawer.xml | 33 --- .../src/main/res/layout/fragment_double_map.xml | 6 +- .../src/main/res/values/actions.xml | 94 ++++++++ .../src/main/res/values/categories.xml | 17 ++ .../src/main/res/values/descriptions.xml | 63 ++++++ .../src/main/res/values/strings.xml | 241 --------------------- .../src/main/res/values/titles.xml | 63 ++++++ 9 files changed, 252 insertions(+), 296 deletions(-) delete mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_navigation_drawer.xml create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/actions.xml create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/categories.xml create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml create mode 100644 platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res') diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_animated_image_source.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_animated_image_source.xml index cfc923902c..26b40b9ab6 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_animated_image_source.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_animated_image_source.xml @@ -5,13 +5,13 @@ android:layout_height="match_parent" android:orientation="vertical"> - + diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_map_fragment.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_map_fragment.xml index 43fa8fb995..419660b36a 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_map_fragment.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_map_fragment.xml @@ -1,17 +1,8 @@ - - - - - + android:layout_height="match_parent"/> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_navigation_drawer.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_navigation_drawer.xml deleted file mode 100644 index 26a71bc568..0000000000 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_navigation_drawer.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/fragment_double_map.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/fragment_double_map.xml index ecfa1372f6..3cf2fbea55 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/fragment_double_map.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/fragment_double_map.xml @@ -1,7 +1,8 @@ + android:layout_width="fill_parent" + android:layout_height="fill_parent" + xmlns:maps="http://schemas.android.com/apk/res-auto"> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/actions.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/actions.xml new file mode 100644 index 0000000000..6c17149a96 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/actions.xml @@ -0,0 +1,94 @@ + + + Concurrent Open InfoWindows + Deselect Markers On Tap + Dismiss location tracking on gesture + Dismiss bearing tracking on gesture + Reset + Enable rotate gestures + Enable scroll gestures + Change to LOST location source + Change to mock location source + Reset location source to null + Move + Ease + Animate + Default + Tint dot + Tint ring + tran + Open dialog + Download region + List regions + Remove polylines + Change visibility + Change alpha + Change points + Change color + Change holes + Change width + "Click the map to calculate the distance" + Move the map by x/y pixels + Open navigation drawer + Close navigation drawer + X: %1$d + Y: %1$d + Animate to new position + Chelsea + Stamford Bridge + Arsenal + Emirates Stadium + Zoom: %.2f + ViewCache size %.2f + Latitude + -180 + Longitude + Zoom + 18 + Bearing + 0 + Tilt + No Results + Change intensity + Change Anchor + Amount of markers + Update layer (invalidate) + Red + Green + Blue + Add an exponential zoom function + Add an interval zoom function + Add a categorical source function + Add an exponential source function + Add an identity source function + Add an interval source function + Add a composite, categorical function + Add a composite, exponential function + Add a composite, interval function + My Location Tracking + Bangalore + List all layers in the style + List all sources in the style + Color the water + Set background opacity + Set road symbol placement to Point + Set layer visibility to false + Add a parks layer + Add a dynamic GeoJSON source + Remove buildings layer + Add a terrain layer + Add a satellite layer + Change the water color on zoom + Custom tiles + Apply filtered fill + Apply filtered line + Apply numeric fill filter + Toggle text size + Toggle text field contents + Toggle text font + Zoom in + Zoom out + Zoom by 2 + Zoom to point + Zoom to 4 + \ No newline at end of file diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/categories.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/categories.xml new file mode 100644 index 0000000000..9ade28ae8d --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/categories.xml @@ -0,0 +1,17 @@ + + + category + _Basic + Annotation + Camera + Custom Layer + Fragment + Image Generator + Info Window + Map Layout + Offline + User Location + Styling + Features + Storage + \ No newline at end of file diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml new file mode 100644 index 0000000000..976d2c0025 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml @@ -0,0 +1,63 @@ + + + Tracks the location of the user + Customize the location of the user + Customize the user location color + Toggle location of the user on and off + Customize location engine + Overlay a custom native layer on the map + Learn how to create a custom InfoWindow + CameraPosition capabilities + Showcase MapFragment + Showcase SupportMapFragment + Activity with multiple maps on screen + Add marker to map on long press + Different types of zoom methods + Configure a max and min zoomlevel + Learn how to handle the InfoWindow + Add Markers In Bulk to a Map + Showcase the different animation types + Center the camera around a bounds + Update position and icon + Map Padding example + Debug Mode + Offline Map example + Update metadata example + Delete region example + Animate the position change of a marker + Add a polyline to a map + Add a polygon to a map + Scroll with pixels in x,y direction + Example to make a snapshot of the map + 2 maps in a view hierarchy + Use an Android SDK View as marker + Learn how to create a dynamic custom InfoWindow + Use SupportMapFragments in a ViewPager + Adopt the map style on the fly + Use functions to change the map appearance + Manipulate symbols at runtime + Use a custom sprite in a Symbol Layer + Use GeoJson sources and dynamic layers to cluster information + Use realtime GeoJSON data streams to move a symbol on your map + Shows how to print a map + Query rendered feature properties on click + Count all rendered features in box + Count all rendered symbols in box + Hightligh buildings in box + Query source for features + Shows a simple map + Logs map change events to Logcat + Changes visibility of map and view parent + Change Symbol icon when zoom levels changes + Use a local file as the style + Display a map inside a dialog fragment + Marker Views within a rectangle + Show bus stops and route in Singapore + Transform urls on the fly + Limit viewport to Iceland + Shows how to add 3D extruded shapes + Shows how to show 3D extruded buildings + Shows how to animate georeferenced images + Show 2 MapView on screen with a bottom sheet + Show a static bitmap taken with the MapSnapshotter + \ No newline at end of file diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml index b1f354aad5..15a916fac9 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/strings.xml @@ -1,245 +1,4 @@ Mapbox Android SDK TestApp - - - Support Map Fragment - Map Fragment - Multiple Maps on Screen - Add Markers In Bulk - Animated Markers - Dynamic Marker - Polyline - Polygon - Press Map For Marker - View Marker API - Zoom function with SymbolLayer - Standard InfoWindow - Custom InfoWindow - Custom Dynamic InfoWindow - Animation Types - Zoom Methods - LatLngBounds Method - CameraPosition Method - Scroll By Method - Double Map Activity - Snapshot Activity - User tracking mode - User location drawable - User location tint color - User location toggle - Custom location engine - Custom Layer - Map Padding - Debug Mode - Offline Map - Update metadata Map - Delete region - Min/Max Zoom - ViewPager - Runtime Style - Data Driven Style - Circle layer - Local Style file - GeoJson Clustering - Add live realtime data - Print a map - Query feature properties - Count features in box - Count symbols in box - Highlight features in box - Query source features - Symbols - Add Custom Sprite - Android SDK View integration - Simple Map - Map Change Events - Visibility Map - Dialog with map - Marker views in rectangle - Url transform - Restrict camera to a bounds - Fill extrusions - Building layer - Animated Image Source - Bottom sheet - Map Snapshotter - - - Tracks the location of the user - Customize the location of the user - Customize the user location color - Toggle location of the user on and off - Customize location engine - Overlay a custom native layer on the map - Learn how to create a custom InfoWindow - CameraPosition capabilities - Showcase MapFragment - Showcase SupportMapFragment - Activity with multiple maps on screen - Add marker to map on long press - Different types of zoom methods - Configure a max and min zoomlevel - Learn how to handle the InfoWindow - Add Markers In Bulk to a Map - Showcase the different animation types - Center the camera around a bounds - Update position and icon - Map Padding example - Debug Mode - Offline Map example - Update metadata example - Delete region example - Animate the position change of a marker - Add a polyline to a map - Add a polygon to a map - Scroll with pixels in x,y direction - Example to make a snapshot of the map - 2 maps in a view hierarchy - Use an Android SDK View as marker - Learn how to create a dynamic custom InfoWindow - Use SupportMapFragments in a ViewPager - Adopt the map style on the fly - Use functions to change the map appearance - Manipulate symbols at runtime - Use a custom sprite in a Symbol Layer - Use GeoJson sources and dynamic layers to cluster information - Use realtime GeoJSON data streams to move a symbol on your map - Shows how to print a map - Test animation of Android SDK View components - Query rendered feature properties on click - Count all rendered features in box - Count all rendered symbols in box - Hightligh buildings in box - Query source for features - Shows a simple map - Logs map change events to Logcat - Changes visibility of map and view parent - Change Symbol icon when zoom levels changes - Use a local file as the style - Display a map inside a dialog fragment - Marker Views within a rectangle - Show bus stops and route in Singapore - Transform urls on the fly - Limit viewport to Iceland - Shows how to add 3D extruded shapes - Shows how to show 3D extruded buildings - Shows how to animate georeferenced images - Show 2 MapView on screen with a bottom sheet - Show a static bitmap taken with the MapSnapshotter - - - category - _Basic - Annotation - Camera - Custom Layer - Fragment - Image Generator - Info Window - Map Layout - Offline - User Location - Styling - Features - Storage - - - Remove polylines - Change visibility - Change alpha - Change points - Change color - Change holes - Change width - "Click the map to calculate the distance" - Move the map by x/y pixels - - - Concurrent Open InfoWindows - Deselect Markers On Tap - Dismiss location tracking on gesture - Dismiss bearing tracking on gesture - Reset - Enable rotate gestures - Enable scroll gestures - Change to LOST location source - Change to mock location source - Reset location source to null - - - Move - Ease - Animate - Default - Tint dot - Tint ring - tran - Open dialog - Download region - List regions - - - Open navigation drawer - Close navigation drawer - X: %1$d - Y: %1$d - Animate to new position - Chelsea - Stamford Bridge - Arsenal - Emirates Stadium - Zoom: %.2f - ViewCache size %.2f - Latitude - -180 - Longitude - Zoom - 18 - Bearing - 0 - Tilt - No Results - Change intensity - Change Anchor - Amount of markers - Update layer (invalidate) - Red - Green - Blue - Add an exponential zoom function - Add an interval zoom function - Add a categorical source function - Add an exponential source function - Add an identity source function - Add an interval source function - Add a composite, categorical function - Add a composite, exponential function - Add a composite, interval function - My Location Tracking - Bangalore - List all layers in the style - List all sources in the style - Color the water - Set background opacity - Set road symbol placement to Point - Set layer visibility to false - Add a parks layer - Add a dynamic GeoJSON source - Remove buildings layer - Add a terrain layer - Add a satellite layer - Change the water color on zoom - Custom tiles - Apply filtered fill - Apply filtered line - Apply numeric fill filter - Toggle text size - Toggle text field contents - Toggle text font - Zoom in - Zoom out - Zoom by 2 - Zoom to point - Zoom to 4 diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml new file mode 100644 index 0000000000..da838bf61b --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml @@ -0,0 +1,63 @@ + + + Support Map Fragment + Map Fragment + Multiple Maps on Screen + Add Markers In Bulk + Animated Markers + Dynamic Marker + Polyline + Polygon + Press Map For Marker + View Marker API + Zoom function with SymbolLayer + Standard InfoWindow + Custom InfoWindow + Custom Dynamic InfoWindow + Animation Types + Zoom Methods + LatLngBounds Method + CameraPosition Method + Scroll By Method + Double Map Activity + Snapshot Activity + User tracking mode + User location drawable + User location tint color + User location toggle + Custom location engine + Custom Layer + Map Padding + Debug Mode + Offline Map + Update metadata Map + Delete region + Min/Max Zoom + ViewPager + Runtime Style + Data Driven Style + Circle layer + Local Style file + GeoJson Clustering + Add live realtime data + Print a map + Query feature properties + Count features in box + Count symbols in box + Highlight features in box + Query source features + Symbols + Add Custom Sprite + Simple Map + Map Change Events + Visibility Map + Dialog with map + Marker views in rectangle + Url transform + Restrict camera to a bounds + Fill extrusions + Building layer + Animated Image Source + Bottom sheet + Map Snapshotter + \ No newline at end of file -- cgit v1.2.1