Added empty plan/food menu cards to replace the previous "No substitutions for you" presentation and gain feature parity with the iOS version

This commit is contained in:
Deniz Düzgören
2019-10-18 22:19:42 +02:00
parent 0c5f075fd0
commit da652edfdf
8 changed files with 35 additions and 61 deletions
-38
View File
@@ -6,42 +6,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:orientation="vertical"
android:id="@+id/empty_plan_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layoutAnimation="@anim/layout_animation_fall_down">
<TextView
android:id="@+id/empty_plan_emoticon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=":("
android:textSize="60dp"
android:layout_gravity="center"
android:textColor="@color/colorHint"
android:visibility="gone"
tools:ignore="HardcodedText,SpUsage" />
<TextView
android:id="@+id/empty_plan_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/no_personal_substitutions"
app:layout_anchor="@+id/smileydown"
android:layout_gravity="bottom|center_horizontal"
android:textColor="@color/colorHint"
android:visibility="gone"
android:layout_marginBottom="16dp"/>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
@@ -49,6 +13,4 @@
android:layoutAnimation="@anim/layout_animation_fall_down"
android:scrollbars="vertical"/>
</LinearLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
+3 -1
View File
@@ -50,7 +50,9 @@
<string name="experimental_menu_dialog_title">Testmenü</string>
<string name="statistics_dialog_title">Statistikmenü</string>
<string name="enable_course_notifications">Kursbenachrichtigungen aktivieren</string>
<string name="no_personal_substitutions">Kein Entfall für dich</string>
<string name="plan_empty">Der Vertretungsplan ist leer</string>
<string name="personal_plan_empty">Dein Plan ist leer :(</string>
<string name="food_menu_empty">Der Speiseplan ist leer</string>
<string name="customise_colours_title">Benutzerdefinierte Farben</string>
<string name="customise_colours_desc">Farben für jedes Fach einstellen</string>
<string name="course_deu">Deutsch (+ DAZ)</string>
+3 -1
View File
@@ -59,7 +59,9 @@
<string name="experimental_menu_dialog_text">This menu is intended for testing only.</string>
<string name="apply">Apply</string>
<string name="invalid_code">Invalid code</string>
<string name="no_personal_substitutions">No substitutions for you</string>
<string name="plan_empty">The substitution plan is empty</string>
<string name="personal_plan_empty">Your plan is empty :(</string>
<string name="food_menu_empty">The food menu is empty</string>
<string name="customise_colours_title">Customize colors</string>
<string name="customise_colours_desc">Customize every subject individually</string>