Add Style URL Activity to Android Test App (#4170)

This commit is contained in:
Andrew Calcutt
2026-03-12 22:34:24 -04:00
committed by GitHub
parent 5107c6cc0b
commit fdc58f04ac
5 changed files with 149 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="8dp">
<AutoCompleteTextView
android:id="@+id/urlAutoCompleteTextView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="Enter or pick Style URL"
android:inputType="textUri"
android:completionThreshold="1"
android:text="https://demotiles.maplibre.org/style.json" />
<Button
android:id="@+id/loadButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Load" />
</LinearLayout>
<org.maplibre.android.maps.MapView
android:id="@id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>

View File

@@ -55,6 +55,7 @@
<string name="description_visibility_map">Changes visibility of map and view parent</string>
<string name="description_add_remove_markers">Change Symbol icon when zoom levels changes</string>
<string name="description_style_file">Use a local file as the style</string>
<string name="description_style_url">Load a map style dynamically from a URL</string>
<string name="description_map_in_dialog">Display a map inside a dialog fragment</string>
<string name="description_circle_layer">Show bus stops and route in Singapore</string>
<string name="description_collection_style_change">Verify that updating the GeoJsonSource across style changes allows for smooth transitions</string>

View File

@@ -40,6 +40,7 @@
<string name="activity_circle_layer">Circle layer</string>
<string name="activity_collection_style_change">Collection updates on style changes</string>
<string name="activity_style_file">Local Style file</string>
<string name="activity_style_url">Style URL</string>
<string name="activity_geojson_clustering">GeoJson Clustering</string>
<string name="activity_geojson_realtime">Add live realtime data</string>
<string name="activity_print">Print a map</string>