2015-01-15 13:35:35 -08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<org.thoughtcrime.securesms.MessageRecipientListItem
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:layout_width="match_parent"
|
2015-03-24 13:37:57 -07:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="10dp">
|
2015-01-15 13:35:35 -08:00
|
|
|
|
2015-05-04 11:36:18 -07:00
|
|
|
<org.thoughtcrime.securesms.components.AvatarImageView
|
2015-01-15 13:35:35 -08:00
|
|
|
android:id="@+id/contact_photo_image"
|
|
|
|
android:foreground="@drawable/contact_photo_background"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_marginBottom="3dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:cropToPadding="true"
|
|
|
|
tools:src="@drawable/ic_contact_picture"
|
|
|
|
android:contentDescription="@string/SingleContactSelectionActivity_contact_photo" />
|
|
|
|
|
|
|
|
<LinearLayout android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dip"
|
|
|
|
android:layout_marginBottom="4dip"
|
|
|
|
android:layout_toRightOf="@id/contact_photo_image"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<LinearLayout android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2015-05-04 11:36:18 -07:00
|
|
|
<org.thoughtcrime.securesms.components.FromTextView
|
|
|
|
android:id="@+id/from"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
|
|
android:textColor="?attr/conversation_list_item_contact_color"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
tools:text="Jules Bonnot"
|
|
|
|
android:ellipsize="marquee" />
|
|
|
|
|
|
|
|
<TextView android:id="@+id/error_description"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="#FFF44336"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible"
|
|
|
|
tools:text="New identity" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<Button android:id="@+id/conflict_button"
|
2015-03-04 16:40:31 -08:00
|
|
|
android:layout_width="wrap_content"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:layout_height="38sp"
|
|
|
|
style="@style/ErrorButton"
|
|
|
|
android:paddingLeft="10dp"
|
2015-03-04 16:40:31 -08:00
|
|
|
android:paddingRight="10dp"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:drawableLeft="@drawable/ic_error_white_18dp"
|
2015-02-27 11:07:20 -08:00
|
|
|
android:text="@string/message_recipients_list_item__verify"
|
2015-03-04 16:40:31 -08:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
2015-01-15 13:35:35 -08:00
|
|
|
|
|
|
|
<Button android:id="@+id/resend_button"
|
2015-03-04 16:40:31 -08:00
|
|
|
android:layout_width="wrap_content"
|
2015-01-15 13:35:35 -08:00
|
|
|
android:layout_height="38sp"
|
|
|
|
style="@style/InfoButton"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:drawableLeft="@drawable/ic_refresh_white_18dp"
|
2015-02-27 11:07:20 -08:00
|
|
|
android:text="@string/message_recipients_list_item__resend"
|
2015-03-04 16:40:31 -08:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
2015-01-15 13:35:35 -08:00
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</org.thoughtcrime.securesms.MessageRecipientListItem>
|