Show progress when parsing recipe
This commit is contained in:
19
app/src/main/res/layout/activity_share_recipe.xml
Normal file
19
app/src/main/res/layout/activity_share_recipe.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/progress"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/content_description_activity_share_recipe_progress"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:srcCompat="@drawable/ic_progress_bar" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -53,4 +53,5 @@
|
||||
<string name="fragment_recipes_list_no_recipes">Нет рецептов</string>
|
||||
<string name="activity_share_recipe_success_toast">Рецепт успешно сохранен.</string>
|
||||
<string name="activity_share_recipe_failure_toast">Что-то пошло не так.</string>
|
||||
<string name="content_description_activity_share_recipe_progress">Индикатор прогресса</string>
|
||||
</resources>
|
||||
4
app/src/main/res/values-v31/drawable.xml
Normal file
4
app/src/main/res/values-v31/drawable.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<drawable name="ic_splash_screen">@drawable/ic_progress_bar</drawable>
|
||||
</resources>
|
||||
@@ -56,4 +56,5 @@
|
||||
<string name="fragment_recipes_list_no_recipes">No recipes</string>
|
||||
<string name="activity_share_recipe_success_toast">Recipe saved successfully.</string>
|
||||
<string name="activity_share_recipe_failure_toast">Something went wrong.</string>
|
||||
<string name="content_description_activity_share_recipe_progress">Progress indicator</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user