Skip to content

Commit 259b65e

Browse files
committed
Add card style to item call log layout
1 parent a4b973d commit 259b65e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android">
3+
<solid android:color="#f0f0f0" />
4+
<corners android:radius="8dp" />
5+
</shape>

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
android:layout_width="match_parent"
1212
android:layout_height="match_parent"
1313
android:orientation="vertical"
14+
android:padding="16dp"
1415
tools:context=".MainActivity">
1516

1617
<androidx.recyclerview.widget.RecyclerView

app/src/main/res/layout/item_call_log.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="wrap_content"
6-
android:padding="16dp">
6+
android:background="@drawable/item_border_rounded"
7+
android:layout_margin="5dp"
8+
android:padding="10dp">
79

810
<TextView
911
android:id="@+id/numberTextView"

0 commit comments

Comments
 (0)