Skip to content

Commit 78e47b5

Browse files
committed
style #9: add image view in the list item
1 parent 7de9b84 commit 78e47b5

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

Affirmations/.idea/workspace.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:id="@+id/item_title"
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
android:layout_width="wrap_content"
5-
android:layout_height="wrap_content">
4+
android:layout_height="wrap_content"
5+
android:orientation="vertical">
66

7-
</TextView>
7+
<ImageView
8+
android:id="@+id/item_image"
9+
android:layout_width="match_parent"
10+
android:layout_height="194dp"
11+
android:importantForAccessibility="no"
12+
android:scaleType="centerCrop" />
13+
14+
<TextView
15+
android:id="@+id/item_title"
16+
android:layout_width="wrap_content"
17+
android:layout_height="wrap_content" />
18+
19+
</LinearLayout>

0 commit comments

Comments
 (0)