Tweak contact selection layout

Closes #6563
// FREEBIE
This commit is contained in:
Mateo Hernandez 2017-04-22 12:51:18 -05:00 committed by Moxie Marlinspike
parent b17cba621e
commit 59a2bf8ae7
2 changed files with 12 additions and 7 deletions

View File

@ -13,6 +13,8 @@
android:id="@+id/recycler_view" android:id="@+id/recycler_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingTop="4dp"
android:clipToPadding="false"
android:scrollbars="vertical" /> android:scrollbars="vertical" />
<TextView android:id="@android:id/empty" <TextView android:id="@android:id/empty"

View File

@ -3,30 +3,33 @@
<org.thoughtcrime.securesms.contacts.ContactSelectionListItem <org.thoughtcrime.securesms.contacts.ContactSelectionListItem
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeight" android:layout_height="60dp"
android:orientation="horizontal" android:orientation="horizontal"
android:gravity="center_vertical" android:gravity="center_vertical"
android:focusable="true" android:focusable="true"
android:background="@drawable/conversation_item_background" android:background="@drawable/conversation_item_background"
android:paddingLeft="48dp" android:paddingLeft="48dp"
android:paddingRight="20dp"> android:paddingStart="48dp"
android:paddingRight="24dp"
android:paddingEnd="24dp">
<org.thoughtcrime.securesms.components.AvatarImageView <org.thoughtcrime.securesms.components.AvatarImageView
android:id="@+id/contact_photo_image" android:id="@+id/contact_photo_image"
android:layout_width="40dp" android:layout_width="32dp"
android:layout_height="40dp" android:layout_height="32dp"
android:foreground="@drawable/contact_photo_background" android:foreground="@drawable/contact_photo_background"
android:cropToPadding="true" android:cropToPadding="true"
tools:src="@color/blue_600" tools:src="@color/blue_600"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:contentDescription="@string/SingleContactSelectionActivity_contact_photo" /> android:contentDescription="@string/SingleContactSelectionActivity_contact_photo" />
<LinearLayout android:layout_width="0dp" <LinearLayout android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:layout_marginLeft="16dp"
android:layout_marginStart="16dp"
android:paddingRight="16dp"
android:paddingEnd="16dp"
android:orientation="vertical"> android:orientation="vertical">
<org.thoughtcrime.securesms.components.emoji.EmojiTextView <org.thoughtcrime.securesms.components.emoji.EmojiTextView