Skip to content

Commit 59a2bf8

Browse files
Mateo Hernandezmoxie0
Mateo Hernandez
authored andcommitted
Tweak contact selection layout
Closes signalapp#6563 // FREEBIE
1 parent b17cba6 commit 59a2bf8

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

res/layout/contact_selection_list_fragment.xml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
android:id="@+id/recycler_view"
1414
android:layout_width="match_parent"
1515
android:layout_height="match_parent"
16+
android:paddingTop="4dp"
17+
android:clipToPadding="false"
1618
android:scrollbars="vertical" />
1719

1820
<TextView android:id="@android:id/empty"

res/layout/contact_selection_list_item.xml

+10-7
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,33 @@
33
<org.thoughtcrime.securesms.contacts.ContactSelectionListItem
44
xmlns:android="http://schemas.android.com/apk/res/android"
55
xmlns:tools="http://schemas.android.com/tools"
6-
xmlns:app="http://schemas.android.com/apk/res-auto"
76
android:layout_width="match_parent"
8-
android:layout_height="?android:attr/listPreferredItemHeight"
7+
android:layout_height="60dp"
98
android:orientation="horizontal"
109
android:gravity="center_vertical"
1110
android:focusable="true"
1211
android:background="@drawable/conversation_item_background"
1312
android:paddingLeft="48dp"
14-
android:paddingRight="20dp">
13+
android:paddingStart="48dp"
14+
android:paddingRight="24dp"
15+
android:paddingEnd="24dp">
1516

1617
<org.thoughtcrime.securesms.components.AvatarImageView
1718
android:id="@+id/contact_photo_image"
18-
android:layout_width="40dp"
19-
android:layout_height="40dp"
19+
android:layout_width="32dp"
20+
android:layout_height="32dp"
2021
android:foreground="@drawable/contact_photo_background"
2122
android:cropToPadding="true"
2223
tools:src="@color/blue_600"
23-
android:layout_marginRight="10dp"
24-
android:layout_marginEnd="10dp"
2524
android:contentDescription="@string/SingleContactSelectionActivity_contact_photo" />
2625

2726
<LinearLayout android:layout_width="0dp"
2827
android:layout_height="wrap_content"
2928
android:layout_weight="1"
29+
android:layout_marginLeft="16dp"
30+
android:layout_marginStart="16dp"
31+
android:paddingRight="16dp"
32+
android:paddingEnd="16dp"
3033
android:orientation="vertical">
3134

3235
<org.thoughtcrime.securesms.components.emoji.EmojiTextView

0 commit comments

Comments
 (0)