1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : id =" @+id/recipesRowLayout"
6
+ android : layout_width =" match_parent"
7
+ android : layout_height =" wrap_content"
8
+ android : layout_marginTop =" 4dp"
9
+ android : layout_marginBottom =" 4dp" >
10
+
11
+ <com .google.android.material.card.MaterialCardView
12
+ android : id =" @+id/row_cardView"
13
+ android : layout_width =" 0dp"
14
+ android : layout_height =" wrap_content"
15
+ app : strokeWidth =" 1dp"
16
+ app : strokeColor =" @color/lightMediumGray"
17
+ app : cardCornerRadius =" 10dp"
18
+ app : layout_constraintBottom_toBottomOf =" parent"
19
+ app : layout_constraintEnd_toEndOf =" parent"
20
+ app : layout_constraintHorizontal_bias =" 0.5"
21
+ app : layout_constraintStart_toStartOf =" parent"
22
+ app : layout_constraintTop_toTopOf =" parent" >
23
+
24
+ <androidx .constraintlayout.widget.ConstraintLayout
25
+ android : layout_width =" match_parent"
26
+ android : layout_height =" match_parent"
27
+ android : background =" @color/white" >
28
+
29
+ <ImageView
30
+ android : id =" @+id/recipe_imageView"
31
+ android : layout_width =" 200dp"
32
+ android : layout_height =" 0dp"
33
+ android : scaleType =" centerCrop"
34
+ app : layout_constraintBottom_toBottomOf =" parent"
35
+ app : layout_constraintStart_toStartOf =" parent"
36
+ app : layout_constraintTop_toTopOf =" parent"
37
+ tools : srcCompat =" @tools:sample/avatars" />
38
+
39
+ <TextView
40
+ android : id =" @+id/title_textView"
41
+ android : layout_width =" 0dp"
42
+ android : layout_height =" wrap_content"
43
+ android : layout_marginStart =" 12dp"
44
+ android : layout_marginTop =" 12dp"
45
+ android : layout_marginEnd =" 12dp"
46
+ android : ellipsize =" end"
47
+ android : fontFamily =" @font/courgette"
48
+ android : maxLines =" 2"
49
+ android : text =" TextView"
50
+ android : textColor =" @color/darker"
51
+ android : textSize =" 20sp"
52
+ android : textStyle =" bold"
53
+ app : layout_constraintEnd_toEndOf =" parent"
54
+ app : layout_constraintHorizontal_bias =" 0.007"
55
+ app : layout_constraintStart_toEndOf =" @+id/recipe_imageView"
56
+ app : layout_constraintTop_toTopOf =" parent" />
57
+
58
+ <TextView
59
+ android : id =" @+id/description_textView"
60
+ android : layout_width =" 0dp"
61
+ android : layout_height =" wrap_content"
62
+ android : layout_marginTop =" 12dp"
63
+ android : ellipsize =" end"
64
+ android : maxLines =" 3"
65
+ android : text =" It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using"
66
+ android : textColor =" @color/darkGray"
67
+ app : layout_constraintEnd_toEndOf =" @+id/title_textView"
68
+ app : layout_constraintStart_toStartOf =" @+id/title_textView"
69
+ app : layout_constraintTop_toBottomOf =" @+id/title_textView" />
70
+
71
+ <ImageView
72
+ android : id =" @+id/heart_imageView"
73
+ android : layout_width =" wrap_content"
74
+ android : layout_height =" wrap_content"
75
+ android : layout_marginTop =" 12dp"
76
+ android : layout_marginBottom =" 36dp"
77
+ app : layout_constraintBottom_toBottomOf =" parent"
78
+ app : layout_constraintEnd_toEndOf =" @+id/heart_textView"
79
+ app : layout_constraintHorizontal_bias =" 0.588"
80
+ app : layout_constraintStart_toStartOf =" @+id/heart_textView"
81
+ app : layout_constraintTop_toBottomOf =" @+id/description_textView"
82
+ app : layout_constraintVertical_bias =" 0.228"
83
+ app : srcCompat =" @drawable/ic_heart_24"
84
+ app : tint =" @color/red" />
85
+
86
+ <TextView
87
+ android : id =" @+id/heart_textView"
88
+ android : layout_width =" wrap_content"
89
+ android : layout_height =" wrap_content"
90
+ android : text =" 100"
91
+ android : textAlignment =" center"
92
+ android : textColor =" @color/red"
93
+ app : layout_constraintStart_toStartOf =" @+id/description_textView"
94
+ app : layout_constraintTop_toBottomOf =" @+id/heart_imageView" />
95
+
96
+ <ImageView
97
+ android : id =" @+id/clock_imageView"
98
+ android : layout_width =" wrap_content"
99
+ android : layout_height =" wrap_content"
100
+ app : tint =" @color/yellow"
101
+ app : layout_constraintEnd_toEndOf =" @+id/clock_textView"
102
+ app : layout_constraintStart_toStartOf =" @+id/clock_textView"
103
+ app : layout_constraintTop_toTopOf =" @+id/heart_imageView"
104
+ app : srcCompat =" @drawable/ic_clock_24" />
105
+
106
+ <TextView
107
+ android : id =" @+id/clock_textView"
108
+ android : layout_width =" wrap_content"
109
+ android : layout_height =" wrap_content"
110
+ android : layout_marginStart =" 24dp"
111
+ android : text =" 100"
112
+ android : textAlignment =" center"
113
+ android : textColor =" @color/yellow"
114
+ app : layout_constraintStart_toEndOf =" @+id/heart_textView"
115
+ app : layout_constraintTop_toBottomOf =" @+id/clock_imageView" />
116
+
117
+ <ImageView
118
+ android : id =" @+id/leaf_imageView"
119
+ android : layout_width =" wrap_content"
120
+ android : layout_height =" wrap_content"
121
+ app : layout_constraintEnd_toEndOf =" @+id/leaf_textView"
122
+ app : layout_constraintStart_toStartOf =" @+id/leaf_textView"
123
+ app : layout_constraintTop_toTopOf =" @+id/clock_imageView"
124
+ app : srcCompat =" @drawable/ic_leaf_24" />
125
+
126
+ <TextView
127
+ android : id =" @+id/leaf_textView"
128
+ android : layout_width =" wrap_content"
129
+ android : layout_height =" wrap_content"
130
+ android : layout_marginStart =" 24dp"
131
+ android : text =" TextView"
132
+ android : textAlignment =" center"
133
+ app : layout_constraintStart_toEndOf =" @+id/clock_textView"
134
+ app : layout_constraintTop_toBottomOf =" @+id/leaf_imageView" />
135
+ </androidx .constraintlayout.widget.ConstraintLayout>
136
+ </com .google.android.material.card.MaterialCardView>
137
+
138
+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments