Added an empty list message to the Passes screen

This commit is contained in:
Arty Bishop committed 2022-03-01 18:32:58 +00:00
1 parent 65941a8304
commit acc308379c
5 files changed
+45 -10

No files matched your search

+30 -5
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
@@ -44,13 +45,37 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
<TextView
android:id="@+id/passes_error_msg"
android:layout_width="wrap_content"
<LinearLayout
android:id="@+id/passes_empty"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/passes_error"
android:textSize="@dimen/text_size_large" />
android:layout_marginStart="48dp"
android:layout_marginEnd="48dp"
android:layout_marginBottom="32dp"
android:orientation="vertical"
tools:ignore="UseCompoundDrawables">
<ImageView
android:id="@+id/passes_empty_img"
android:layout_width="180dp"
android:layout_height="180dp"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="24dp"
android:contentDescription="@string/passes_error"
android:src="@drawable/ic_list"
app:tint="@color/textDisabled" />
<TextView
android:id="@+id/passes_empty_msg"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center"
android:text="@string/passes_error"
android:textSize="@dimen/text_size_large" />
</LinearLayout>
</androidx.cardview.widget.CardView>