diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/res')
20 files changed, 249 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_offline_map_form.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_offline_map_form.xml new file mode 100644 index 0000000000..4b680cd9d2 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_offline_map_form.xml @@ -0,0 +1,194 @@ +<?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:paddingLeft="20dp" + android:paddingRight="20dp" + android:paddingTop="10dp"> + + <!-- Region Name --> + <TextView + android:id="@+id/name_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp" + android:text="REGION NAME:" /> + + <EditText + android:id="@+id/name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/name_label" + android:layout_toEndOf="@id/name_label" + android:layout_alignBaseline="@id/name_label" + android:hint="Enter Region Name" /> + + <!-- Style --> + <TextView + android:id="@+id/style_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/name_label" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp" + android:text="STYLE:" /> + + <Spinner + android:id="@+id/style" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/name" + android:layout_toRightOf="@id/style_label" + android:layout_toEndOf="@id/style_label" + android:layout_alignBaseline="@id/style_label"/> + + <!-- Min Zoom --> + <TextView + android:id="@+id/minzoom_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/style_label" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp" + android:text="MIN ZOOM:"/> + + <TextView + android:id="@+id/minzoom" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/style_label" + android:layout_alignBaseline="@id/minzoom_label" + android:layout_toRightOf="@+id/minzoom_label" + android:layout_toEndOf="@+id/minzoom_label" + android:text="0"/> + + <SeekBar + android:id="@+id/minzoom_slider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/style_label" + android:layout_toRightOf="@+id/minzoom" + android:layout_toEndOf="@+id/minzoom" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp"/> + + <!-- Max Zoom --> + <TextView + android:id="@+id/maxzoom_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/minzoom_label" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp" + android:text="MAX ZOOM: "/> + + <TextView + android:id="@+id/maxzoom" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/minzoom_label" + android:layout_alignBaseline="@id/maxzoom_label" + android:layout_toRightOf="@+id/maxzoom_label" + android:layout_toEndOf="@+id/maxzoom_label" + android:text="25"/> + + <SeekBar + android:id="@+id/maxzoom_slider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/minzoom_label" + android:layout_toRightOf="@+id/maxzoom" + android:layout_toEndOf="@+id/maxzoom" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp"/> + + + <LinearLayout + android:id="@+id/north_east_lat_lon" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/maxzoom_label" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp" + android:orientation="horizontal"> + + <TextView + android:id="@+id/north_east_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="NORTH EAST:" /> + + <EditText + android:id="@+id/lat_north" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:inputType="numberSigned|numberDecimal" + android:layout_weight="1"/> + + <EditText + android:id="@+id/lon_east" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:inputType="numberSigned|numberDecimal" + android:layout_weight="1"/> + </LinearLayout> + + + <LinearLayout + android:id="@+id/south_west_lat_lon" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/north_east_lat_lon" + android:layout_marginBottom="10dp" + android:layout_marginTop="10dp" + android:orientation="horizontal"> + + <TextView + android:id="@+id/south_west_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="SOUTH WEST:" /> + + <EditText + android:id="@+id/lat_south" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:inputType="numberSigned|numberDecimal" + android:layout_weight="1"/> + + <EditText + android:id="@+id/lon_west" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:inputType="numberSigned|numberDecimal" + android:layout_weight="1"/> + </LinearLayout> + + + <Button + android:id="@+id/action_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/south_west_lat_lon" + android:text="Start Download"/> + + <TextView + android:id="@+id/download_progress" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignBottom="@id/action_button" + android:layout_below="@id/south_west_lat_lon" + android:layout_toRightOf="@id/action_button" + android:layout_toEndOf="@id/action_button" + android:layout_alignBaseline="@id/action_button" + android:text="0B, 0%" /> + + + +</RelativeLayout> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_offline_region_list.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_offline_region_list.xml new file mode 100644 index 0000000000..cae030471d --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_offline_region_list.xml @@ -0,0 +1,12 @@ +<?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"> + + <ListView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/areas" /> + +</RelativeLayout> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/offline_region_list_item.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/offline_region_list_item.xml new file mode 100644 index 0000000000..7b2a1486e7 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/offline_region_list_item.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/list_item" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingLeft="20dp" + android:paddingStart="20dp" + android:paddingRight="20dp" + android:paddingEnd="20dp" + android:paddingTop="10dp" + android:paddingBottom="10dp"> + + <TextView + android:id="@+id/area_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Hessen" + android:textSize="24sp" /> + + <TextView + android:id="@+id/size" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/area_name" + android:text="" + /> + + + <ImageView + android:id="@+id/state_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:adjustViewBounds="false" + android:src="@mipmap/ic_file_download_black_24dp" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_autorenew_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_autorenew_black_24dp.png Binary files differnew file mode 100644 index 0000000000..39be19e473 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_autorenew_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_file_download_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_file_download_black_24dp.png Binary files differnew file mode 100644 index 0000000000..d9aacea4c6 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_file_download_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_play_arrow_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_play_arrow_black_24dp.png Binary files differnew file mode 100644 index 0000000000..e9c288c991 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-hdpi/ic_play_arrow_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_autorenew_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_autorenew_black_24dp.png Binary files differnew file mode 100644 index 0000000000..2c9f369779 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_autorenew_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_file_download_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_file_download_black_24dp.png Binary files differnew file mode 100644 index 0000000000..c2c845e849 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_file_download_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_play_arrow_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_play_arrow_black_24dp.png Binary files differnew file mode 100644 index 0000000000..d78c57bad5 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-mdpi/ic_play_arrow_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_autorenew_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_autorenew_black_24dp.png Binary files differnew file mode 100644 index 0000000000..217fe38112 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_autorenew_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_file_download_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_file_download_black_24dp.png Binary files differnew file mode 100644 index 0000000000..f5afb24dc5 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_file_download_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_play_arrow_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_play_arrow_black_24dp.png Binary files differnew file mode 100644 index 0000000000..f208795fcc --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xhdpi/ic_play_arrow_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_autorenew_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_autorenew_black_24dp.png Binary files differnew file mode 100644 index 0000000000..910746ecc4 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_autorenew_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_file_download_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_file_download_black_24dp.png Binary files differnew file mode 100644 index 0000000000..ce97c85dfa --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_file_download_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_play_arrow_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_play_arrow_black_24dp.png Binary files differnew file mode 100644 index 0000000000..5345ee3c4a --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxhdpi/ic_play_arrow_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_autorenew_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_autorenew_black_24dp.png Binary files differnew file mode 100644 index 0000000000..3c0b5d203d --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_autorenew_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_file_download_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_file_download_black_24dp.png Binary files differnew file mode 100644 index 0000000000..8c83bffa7e --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_file_download_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_play_arrow_black_24dp.png b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_play_arrow_black_24dp.png Binary files differnew file mode 100644 index 0000000000..d12d495622 --- /dev/null +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/mipmap-xxxhdpi/ic_play_arrow_black_24dp.png diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml index d0aab04d93..8c87a2007a 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml @@ -24,6 +24,8 @@ <string name="description_offline">Offline Map example</string> <string name="description_update_metadata">Update metadata example</string> <string name="description_offline_region_delete">Delete region example</string> + <string name="description_offline_regions_list">List offline regions example</string> + <string name="description_offline_map_form">Form to download offline map</string> <string name="description_animated_marker">Animate the position change of a marker</string> <string name="description_polyline">Add a polyline to a map</string> <string name="description_polygon">Add a polygon to a map</string> diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml index b90cedc518..273018ece6 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/titles.xml @@ -32,6 +32,8 @@ <string name="activity_offline">Offline Map</string> <string name="activity_update_metadata">Update metadata Map</string> <string name="activity_offline_region_delete">Delete region</string> + <string name="activity_offline_regions_list">List offline regions</string> + <string name="activity_offline_map_form">Download offline map form</string> <string name="activity_minmax_zoom">Min/Max Zoom</string> <string name="activity_viewpager">ViewPager</string> <string name="activity_runtime_style">Runtime Style</string> |