mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 01:53:46 +00:00
[android] Add custom world map download URL option
- Allow setting a custom map download URL in the "world-download" screen. Signed-off-by: NoelClick <dev@noel.click>
This commit is contained in:
@@ -6,6 +6,15 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_advanced"
|
||||
style="@style/MwmWidget.M3.Button.Secondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/margin_base_plus"
|
||||
android:layout_marginEnd="@dimen/margin_base_plus"
|
||||
android:text="@string/download_resources_advanced"
|
||||
android:textAppearance="@style/MwmTextAppearance.Body2"/>
|
||||
<com.google.android.material.checkbox.MaterialCheckBox
|
||||
android:id="@+id/chb_download_country"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
18
android/app/src/main/res/layout/dialog_custom_map_server.xml
Normal file
18
android/app/src/main/res/layout/dialog_custom_map_server.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
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="wrap_content"
|
||||
android:hint="@string/download_resources_custom_url_title"
|
||||
app:placeholderText="@string/download_resources_custom_url_hint">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/edit_custom_map_server"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/margin_base"
|
||||
android:layout_marginEnd="@dimen/margin_base"
|
||||
android:inputType="textUri"
|
||||
android:singleLine="true" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
Reference in New Issue
Block a user