Skip to content

Commit 85ee258

Browse files
committed
Create the RecipesRowLayout
1 parent 94c5d1c commit 85ee258

12 files changed

+211
-2
lines changed

.idea/deploymentTargetDropDown.xml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/sonarlint/issuestore/index.pb

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/AndroidManifest.xml

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
<category android:name="android.intent.category.LAUNCHER" />
2626
</intent-filter>
2727
</activity>
28+
<meta-data
29+
android:name="preloaded_fonts"
30+
android:resource="@array/preloaded_fonts" />
2831
</application>
2932

3033
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<vector android:height="24dp" android:tint="#000000"
2+
android:viewportHeight="24" android:viewportWidth="24"
3+
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4+
<path android:fillColor="@android:color/white" android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z"/>
5+
<path android:fillColor="@android:color/white" android:pathData="M12.5,7H11v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z"/>
6+
</vector>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<vector android:height="24dp" android:tint="#000000"
2+
android:viewportHeight="24" android:viewportWidth="24"
3+
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4+
<path android:fillColor="@android:color/white" android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/>
5+
</vector>
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<vector android:height="24dp" android:tint="#000000"
2+
android:viewportHeight="24" android:viewportWidth="24"
3+
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4+
<path android:fillColor="@android:color/white" android:pathData="M6.05,8.05c-2.73,2.73 -2.73,7.15 -0.02,9.88c1.47,-3.4 4.09,-6.24 7.36,-7.93c-2.77,2.34 -4.71,5.61 -5.39,9.32c2.6,1.23 5.8,0.78 7.95,-1.37C19.43,14.47 20,4 20,4S9.53,4.57 6.05,8.05z"/>
5+
</vector>

app/src/main/res/font/courgette.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<font-family xmlns:app="http://schemas.android.com/apk/res-auto"
3+
app:fontProviderAuthority="com.google.android.gms.fonts"
4+
app:fontProviderPackage="com.google.android.gms"
5+
app:fontProviderQuery="Courgette"
6+
app:fontProviderCerts="@array/com_google_android_gms_fonts_certs">
7+
</font-family>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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>
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<array name="com_google_android_gms_fonts_certs">
4+
<item>@array/com_google_android_gms_fonts_certs_dev</item>
5+
<item>@array/com_google_android_gms_fonts_certs_prod</item>
6+
</array>
7+
<string-array name="com_google_android_gms_fonts_certs_dev">
8+
<item>
9+
MIIEqDCCA5CgAwIBAgIJANWFuGx90071MA0GCSqGSIb3DQEBBAUAMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTAeFw0wODA0MTUyMzM2NTZaFw0zNTA5MDEyMzM2NTZaMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbTCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBANbOLggKv+IxTdGNs8/TGFy0PTP6DHThvbbR24kT9ixcOd9W+EaBPWW+wPPKQmsHxajtWjmQwWfna8mZuSeJS48LIgAZlKkpFeVyxW0qMBujb8X8ETrWy550NaFtI6t9+u7hZeTfHwqNvacKhp1RbE6dBRGWynwMVX8XW8N1+UjFaq6GCJukT4qmpN2afb8sCjUigq0GuMwYXrFVee74bQgLHWGJwPmvmLHC69EH6kWr22ijx4OKXlSIx2xT1AsSHee70w5iDBiK4aph27yH3TxkXy9V89TDdexAcKk/cVHYNnDBapcavl7y0RiQ4biu8ymM8Ga/nmzhRKya6G0cGw8CAQOjgfwwgfkwHQYDVR0OBBYEFI0cxb6VTEM8YYY6FbBMvAPyT+CyMIHJBgNVHSMEgcEwgb6AFI0cxb6VTEM8YYY6FbBMvAPyT+CyoYGapIGXMIGUMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEQMA4GA1UEChMHQW5kcm9pZDEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDEiMCAGCSqGSIb3DQEJARYTYW5kcm9pZEBhbmRyb2lkLmNvbYIJANWFuGx90071MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQADggEBABnTDPEF+3iSP0wNfdIjIz1AlnrPzgAIHVvXxunW7SBrDhEglQZBbKJEk5kT0mtKoOD1JMrSu1xuTKEBahWRbqHsXclaXjoBADb0kkjVEJu/Lh5hgYZnOjvlba8Ld7HCKePCVePoTJBdI4fvugnL8TsgK05aIskyY0hKI9L8KfqfGTl1lzOv2KoWD0KWwtAWPoGChZxmQ+nBli+gwYMzM1vAkP+aayLe0a1EQimlOalO762r0GXO0ks+UeXde2Z4e+8S/pf7pITEI/tP+MxJTALw9QUWEv9lKTk+jkbqxbsh8nfBUapfKqYn0eidpwq2AzVp3juYl7//fKnaPhJD9gs=
10+
</item>
11+
</string-array>
12+
<string-array name="com_google_android_gms_fonts_certs_prod">
13+
<item>
14+
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQ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KkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCEyj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1SKMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifKZ0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3WfMBEmh/9iFBDAaTCK
15+
</item>
16+
</string-array>
17+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<array name="preloaded_fonts" translatable="false">
4+
<item>@font/courgette</item>
5+
</array>
6+
</resources>

0 commit comments

Comments
 (0)