/
save_list_item.xml
100 lines (90 loc) 路 4.15 KB
/
save_list_item.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imgSaveProduct"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="@dimen/spacing_small"
android:adjustViewBounds="true"
android:maxWidth="50dp"
android:scaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_crowdsourcing_icon" />
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/percentage_completed"
app:layout_constraintStart_toEndOf="@id/imgSaveProduct"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/titleSave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/font_normal"
tools:text="Product Name" />
<TextView
android:id="@+id/offlineBrand"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/font_normal"
tools:text="Test Brand" />
<TextView
android:id="@+id/offlineWeight"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/font_normal"
tools:text="200 g" />
<TextView
android:id="@+id/barcodeSave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/font_normal"
tools:text="8888888888888" />
</LinearLayout>
<ProgressBar
android:id="@+id/percentage_completed"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="50dp"
android:layout_height="15dp"
android:layout_margin="@dimen/spacing_normal"
android:max="25"
android:progress="12"
app:layout_constraintBottom_toBottomOf="@id/imgSaveProduct"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/imgSaveProduct" />
<TextView
android:id="@+id/txt_percentage"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center"
android:textColor="@color/white"
android:textSize="@dimen/font_small"
app:layout_constraintBottom_toBottomOf="@id/percentage_completed"
app:layout_constraintEnd_toEndOf="@id/percentage_completed"
app:layout_constraintStart_toStartOf="@id/percentage_completed"
app:layout_constraintTop_toTopOf="@id/percentage_completed"
tools:text="35%" />
<ProgressBar
android:id="@+id/offlineUploadProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/spacing_normal"
android:layout_marginLeft="@dimen/spacing_small"
android:layout_marginRight="@dimen/spacing_small"
android:indeterminate="true"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible" />
</androidx.constraintlayout.widget.ConstraintLayout>