session-android/res/layout/conversation_list_item_view.xml

94 lines
4.2 KiB
XML
Raw Normal View History

2011-12-20 10:20:44 -08:00
<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.ConversationListItem
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2015-01-20 21:26:58 -10:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2015-01-20 21:26:58 -10:00
android:layout_height="70dp">
2011-12-20 10:20:44 -08:00
<FrameLayout android:id="@+id/contact_photo_frame"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
2014-01-16 00:36:05 -08:00
android:paddingTop="3dp"
android:paddingBottom="3dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:visibility="visible">
<com.makeramen.RoundedImageView
2014-02-25 05:07:12 +02:00
android:id="@+id/contact_photo_image"
android:foreground="@drawable/contact_photo_background"
2015-01-20 21:26:58 -10:00
android:layout_width="50dp"
android:layout_height="50dp"
app:riv_oval="true"
2014-02-25 05:07:12 +02:00
android:cropToPadding="true"
android:scaleType="centerCrop"
android:visibility="gone"
2015-01-20 21:26:58 -10:00
tools:src="@drawable/ic_contact_picture"
android:contentDescription="@string/conversation_list_item_view__contact_photo_image"
2014-02-25 05:07:12 +02:00
android:layout_marginLeft="0dp" />
</FrameLayout>
<LinearLayout
android:layout_width="match_parent"
2011-12-20 10:20:44 -08:00
android:layout_height="wrap_content"
android:layout_marginTop="4dip"
android:layout_marginLeft="4dip"
android:layout_marginRight="8dip"
android:layout_marginBottom="4dip"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/contact_photo_frame"
android:orientation="vertical">
2012-07-16 20:20:13 -07:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1"
android:gravity="bottom">
2011-12-20 10:20:44 -08:00
<TextView android:id="@+id/from"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?attr/conversation_list_item_contact_color"
android:singleLine="true"
2015-01-20 21:26:58 -10:00
tools:text="Jules Bonnot"
android:ellipsize="marquee" />
2011-12-20 10:20:44 -08:00
<ImageView android:id="@+id/error"
android:layout_marginLeft="3dip"
android:layout_height="match_parent"
android:layout_width="20sp"
android:visibility="gone"
android:src="@drawable/ic_action_warning_red"
android:contentDescription="@string/conversation_list_item_view__error_alert" />
<TextView android:id="@+id/date"
android:layout_marginLeft="3dip"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?attr/conversation_list_item_date_color"
android:fontFamily="sans-serif-light"
2015-01-20 21:26:58 -10:00
tools:text="30 mins"
android:singleLine="true"
android:layout_gravity="top" />
</LinearLayout>
<TextView android:id="@+id/subject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?attr/conversation_list_item_subject_color"
android:fontFamily="sans-serif-light"
android:singleLine="true"
2015-01-20 21:26:58 -10:00
tools:text="Wheels arrive at 3pm flat."
android:ellipsize="end" />
2011-12-20 10:20:44 -08:00
</LinearLayout>
</org.thoughtcrime.securesms.ConversationListItem>