session-android/res/layout/view_conversation.xml

119 lines
4.6 KiB
XML
Raw Normal View History

2019-12-17 14:27:59 +01:00
<?xml version="1.0" encoding="utf-8"?>
2019-12-19 11:15:58 +01:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-12-17 14:27:59 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-19 11:15:58 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-12-17 15:15:13 +01:00
android:background="@drawable/conversation_view_background"
2019-12-17 14:27:59 +01:00
android:orientation="horizontal"
android:gravity="center_vertical">
<View
2020-07-16 11:20:39 +10:00
android:id="@+id/accentView"
2019-12-17 14:27:59 +01:00
android:layout_width="@dimen/accent_line_thickness"
android:layout_height="match_parent"
android:background="@color/accent" />
2020-05-11 16:19:26 +10:00
<org.thoughtcrime.securesms.loki.views.ProfilePictureView
2019-12-17 16:24:42 +01:00
android:id="@+id/profilePictureView"
2019-12-17 14:27:59 +01:00
android:layout_width="@dimen/medium_profile_picture_size"
android:layout_height="@dimen/medium_profile_picture_size"
android:layout_marginTop="@dimen/medium_spacing"
android:layout_marginLeft="@dimen/medium_spacing"
2019-12-17 16:24:42 +01:00
android:layout_marginBottom="@dimen/medium_spacing" />
2019-12-17 14:27:59 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/medium_spacing"
android:layout_marginRight="@dimen/medium_spacing"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-17 15:15:13 +01:00
android:orientation="horizontal"
android:gravity="center_vertical">
2019-12-17 14:27:59 +01:00
<TextView
android:id="@+id/displayNameTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-12-17 15:15:13 +01:00
android:maxLines="1"
android:ellipsize="end"
2019-12-17 14:27:59 +01:00
android:textSize="@dimen/medium_font_size"
android:textStyle="bold"
android:textColor="@color/text"
android:text="Spiderman" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<TextView
android:id="@+id/timestampTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/medium_spacing"
2019-12-17 15:15:13 +01:00
android:maxLines="1"
android:ellipsize="end"
2019-12-17 14:27:59 +01:00
android:textSize="@dimen/small_font_size"
android:textColor="@color/text"
android:alpha="0.4"
android:text="9:41 AM" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-12-17 15:15:13 +01:00
android:orientation="horizontal"
android:gravity="center_vertical">
2019-12-17 14:27:59 +01:00
2020-01-16 11:48:49 +11:00
<ImageView
android:id="@+id/muteIndicatorImageView"
android:layout_width="12dp"
android:layout_height="12dp"
android:src="@drawable/ic_mute"
android:layout_marginTop="1dp"
android:layout_marginRight="4dp" />
2019-12-19 11:15:58 +01:00
<RelativeLayout
2019-12-17 14:27:59 +01:00
android:layout_width="wrap_content"
2019-12-19 11:15:58 +01:00
android:layout_height="wrap_content">
<TextView
android:id="@+id/snippetTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:ellipsize="end"
android:textSize="@dimen/medium_font_size"
android:textColor="@color/text"
android:text="Sorry, gotta go fight crime again" />
<org.thoughtcrime.securesms.components.TypingIndicatorView
android:id="@+id/typingIndicatorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
app:typingIndicator_tint="@color/text" />
</RelativeLayout>
2019-12-17 14:27:59 +01:00
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
2019-12-19 11:15:58 +01:00
<ImageView
2019-12-17 14:27:59 +01:00
android:id="@+id/statusIndicatorImageView"
android:layout_width="@dimen/conversation_view_status_indicator_size"
android:layout_height="@dimen/conversation_view_status_indicator_size"
android:layout_marginLeft="@dimen/medium_spacing" />
</LinearLayout>
</LinearLayout>
2019-12-17 16:24:42 +01:00
</LinearLayout>