Skip to content

Commit bc849cf

Browse files
authored
Add new empty state icon for receiptlist (#150)
1 parent 5367b66 commit bc849cf

File tree

3 files changed

+50
-8
lines changed

3 files changed

+50
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ All notable changes to this project will be documented in this file.
77
### Removed
88
### Fixed
99

10+
## [0.71.2]
11+
### Added
12+
* ui-toolkit: New icon for empty state of the receipt list (#150)
13+
1014
## [0.71.1]
1115
### Fixed
1216
* ui-toolkit: Wrong behaviour of the purchase widget (#149)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:autoMirrored="true"
5+
android:tint="@android:color/white"
6+
android:viewportWidth="24"
7+
android:viewportHeight="24">
8+
<path
9+
android:fillColor="@android:color/white"
10+
android:pathData="M19.5,3.5L18,2l-1.5,1.5L15,2l-1.5,1.5L12,2l-1.5,1.5L9,2L7.5,3.5L6,2v14H3v3c0,1.66 1.34,3 3,3h12c1.66,0 3,-1.34 3,-3V2L19.5,3.5zM15,20H6c-0.55,0 -1,-0.45 -1,-1v-1h10V20zM19,19c0,0.55 -0.45,1 -1,1s-1,-0.45 -1,-1v-3H8V5h11V19z" />
11+
<path
12+
android:fillColor="@android:color/white"
13+
android:pathData="M9,7h6v2h-6z" />
14+
<path
15+
android:fillColor="@android:color/white"
16+
android:pathData="M16,7h2v2h-2z" />
17+
<path
18+
android:fillColor="@android:color/white"
19+
android:pathData="M9,10h6v2h-6z" />
20+
<path
21+
android:fillColor="@android:color/white"
22+
android:pathData="M16,10h2v2h-2z" />
23+
</vector>

ui-toolkit/src/main/res/layout/fragment_receipt_list.xml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,33 @@
2727

2828
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
2929

30-
<TextView
30+
<LinearLayout
3131
android:id="@+id/empty_state"
32-
style="@style/TextAppearance.MaterialComponents.Body1"
3332
android:layout_width="wrap_content"
3433
android:layout_height="wrap_content"
3534
android:layout_gravity="center"
36-
android:layout_margin="16dp"
37-
android:drawablePadding="32dp"
38-
android:text="@string/Snabble.Receipts.noReceipts"
35+
android:orientation="vertical"
3936
android:visibility="gone"
40-
app:drawableTint="@color/primary"
41-
app:drawableTopCompat="@drawable/ic_receipt"
42-
tools:visibility="visible" />
37+
tools:visibility="visible">
38+
39+
<ImageView
40+
android:layout_width="86dp"
41+
android:layout_height="93dp"
42+
android:layout_gravity="center_horizontal"
43+
android:contentDescription="@string/Snabble.Receipts.title"
44+
android:src="@drawable/snabble_receipts"
45+
app:tint="@color/primary"
46+
tools:visibility="visible" />
47+
48+
<TextView
49+
style="@style/TextAppearance.MaterialComponents.Body1"
50+
android:layout_width="wrap_content"
51+
android:layout_height="wrap_content"
52+
android:layout_gravity="center"
53+
android:layout_margin="16dp"
54+
android:drawablePadding="32dp"
55+
android:text="@string/Snabble.Receipts.noReceipts"
56+
tools:visibility="visible" />
57+
</LinearLayout>
4358

4459
</FrameLayout>

0 commit comments

Comments
 (0)