Skip to content

Commit a13d8d3

Browse files
committed
style #9: add material card design for affirmations
1 parent 7a7b9fa commit a13d8d3

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

Affirmations/.idea/workspace.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:layout_width="wrap_content"
2+
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
44
android:layout_height="wrap_content"
5-
android:orientation="vertical">
5+
android:layout_margin="8dp">
66

7-
<ImageView
8-
android:id="@+id/item_image"
7+
<LinearLayout
98
android:layout_width="match_parent"
10-
android:layout_height="194dp"
11-
android:importantForAccessibility="no"
12-
android:scaleType="centerCrop" />
9+
android:layout_height="wrap_content"
10+
android:orientation="vertical">
1311

14-
<TextView
15-
android:id="@+id/item_title"
16-
android:layout_width="wrap_content"
17-
android:layout_height="wrap_content" />
12+
<ImageView
13+
android:id="@+id/item_image"
14+
android:layout_width="match_parent"
15+
android:layout_height="194dp"
16+
android:importantForAccessibility="no"
17+
android:scaleType="centerCrop" />
1818

19-
</LinearLayout>
19+
<TextView
20+
android:id="@+id/item_title"
21+
android:layout_width="wrap_content"
22+
android:layout_height="wrap_content"
23+
android:padding="16dp"
24+
android:textAppearance="?attr/textAppearanceHeadline6" />
25+
26+
</LinearLayout>
27+
28+
29+
</com.google.android.material.card.MaterialCardView>

0 commit comments

Comments
 (0)