Improve URL input screen
This commit is contained in:
@@ -1,42 +1,45 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context=".ui.baseurl.BaseURLFragment">
|
tools:context=".ui.baseurl.BaseURLFragment">
|
||||||
|
|
||||||
<com.google.android.material.progressindicator.LinearProgressIndicator
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||||
android:id="@+id/progress"
|
android:id="@+id/progress"
|
||||||
style="@style/IndeterminateProgress"
|
style="@style/IndeterminateProgress"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/url_input_layout"
|
android:id="@+id/url_input_layout"
|
||||||
style="@style/SmallMarginTextInputLayoutStyle"
|
style="@style/SmallMarginTextInputLayoutStyle"
|
||||||
android:hint="@string/fragment_authentication_input_hint_url"
|
android:hint="@string/fragment_authentication_input_hint_url"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/button"
|
app:helperText="@string/fragment_base_url_url_input_helper_text"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:helperTextEnabled="true"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintBottom_toTopOf="@+id/button"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintVertical_chainStyle="packed">
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintVertical_bias="0.2"
|
||||||
|
app:layout_constraintVertical_chainStyle="packed">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
android:id="@+id/url_input"
|
android:id="@+id/url_input"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="textUri" />
|
android:inputType="textUri" />
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/button"
|
android:id="@+id/button"
|
||||||
style="@style/SmallMarginButton"
|
style="@style/SmallMarginButton"
|
||||||
android:text="@string/fragment_base_url_save"
|
android:text="@string/fragment_base_url_save"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/url_input_layout" />
|
app:layout_constraintTop_toBottomOf="@+id/url_input_layout" />
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
@@ -38,4 +38,5 @@
|
|||||||
<string name="fragment_add_recipe_save_error">Что-то пошло не так</string>
|
<string name="fragment_add_recipe_save_error">Что-то пошло не так</string>
|
||||||
<string name="fragment_add_recipe_save_success">Рецепт сохранен успешно</string>
|
<string name="fragment_add_recipe_save_success">Рецепт сохранен успешно</string>
|
||||||
<string name="fragment_add_recipe_clear_button">Очистить</string>
|
<string name="fragment_add_recipe_clear_button">Очистить</string>
|
||||||
|
<string name="fragment_base_url_url_input_helper_text">Пример: demo.mealie.io</string>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -42,4 +42,5 @@
|
|||||||
<string name="fragment_add_recipe_save_error">Something went wrong</string>
|
<string name="fragment_add_recipe_save_error">Something went wrong</string>
|
||||||
<string name="fragment_add_recipe_save_success">Saved recipe successfully</string>
|
<string name="fragment_add_recipe_save_success">Saved recipe successfully</string>
|
||||||
<string name="fragment_add_recipe_clear_button">Clear</string>
|
<string name="fragment_add_recipe_clear_button">Clear</string>
|
||||||
|
<string name="fragment_base_url_url_input_helper_text">Example: demo.mealie.io</string>
|
||||||
</resources>
|
</resources>
|
||||||
Reference in New Issue
Block a user