mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
191 lines
8.9 KiB
XML
191 lines
8.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.home.ConversationView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<View
|
|
android:id="@+id/accentView"
|
|
android:layout_width="@dimen/accent_line_thickness"
|
|
android:layout_height="match_parent"
|
|
android:background="?colorAccent" />
|
|
|
|
<org.thoughtcrime.securesms.components.ProfilePictureView
|
|
android:id="@+id/profilePictureView"
|
|
android:layout_width="@dimen/medium_profile_picture_size"
|
|
android:layout_height="@dimen/medium_profile_picture_size"
|
|
android:layout_marginTop="@dimen/medium_spacing"
|
|
android:layout_marginStart="@dimen/medium_spacing"
|
|
android:layout_marginBottom="@dimen/medium_spacing" />
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/medium_spacing"
|
|
android:layout_marginEnd="@dimen/medium_spacing"
|
|
android:layout_gravity="center_vertical"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/conversationViewDisplayNameTextView"
|
|
android:contentDescription="@string/AccessibilityId_conversation_list_item"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/unreadCountIndicator"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constrainedWidth="true"
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
app:layout_constraintHorizontal_bias="0"
|
|
android:drawablePadding="4dp"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:textAlignment="viewStart"
|
|
android:textSize="@dimen/medium_font_size"
|
|
android:textStyle="bold"
|
|
android:textColor="?android:textColorPrimary"
|
|
app:drawableTint="?conversation_pinned_icon_color"
|
|
tools:drawableRight="@drawable/ic_pin"
|
|
tools:text="I'm a very long display name. What are you going to do about it?" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/unreadCountIndicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="20dp"
|
|
android:layout_marginStart="4dp"
|
|
app:layout_constraintStart_toEndOf="@id/conversationViewDisplayNameTextView"
|
|
app:layout_constraintEnd_toStartOf="@id/unreadMentionIndicator"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:minWidth="20dp"
|
|
android:maxWidth="40dp"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp"
|
|
android:background="@drawable/rounded_rectangle"
|
|
android:backgroundTint="?unreadIndicatorBackgroundColor">
|
|
|
|
<TextView
|
|
android:id="@+id/unreadCountTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:textColor="?unreadIndicatorTextColor"
|
|
android:textSize="@dimen/very_small_font_size"
|
|
android:textStyle="bold"
|
|
tools:text="8"
|
|
tools:textColor="?android:textColorPrimary" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/unreadMentionIndicator"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="20dp"
|
|
android:layout_marginStart="4dp"
|
|
app:layout_constraintStart_toEndOf="@id/unreadCountIndicator"
|
|
app:layout_constraintEnd_toStartOf="@id/timestampTextView"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:minWidth="20dp"
|
|
android:maxWidth="40dp"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp"
|
|
android:background="@drawable/rounded_rectangle"
|
|
android:backgroundTint="?unreadIndicatorBackgroundColor">
|
|
|
|
<TextView
|
|
android:id="@+id/unreadMentionTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:paddingBottom="3dp"
|
|
android:textColor="?unreadIndicatorTextColor"
|
|
android:textSize="@dimen/very_small_font_size"
|
|
android:textStyle="bold"
|
|
android:text="@"
|
|
tools:textColor="?android:textColorPrimary" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/timestampTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:paddingStart="@dimen/medium_spacing"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
android:textSize="@dimen/small_font_size"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:alpha="0.4"
|
|
tools:text="9:41 AM" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@+id/muteIndicatorImageView"
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/ic_outline_notifications_off_24"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginEnd="6dp" />
|
|
|
|
<RelativeLayout
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/snippetTextView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/medium_font_size"
|
|
tools:text="Sorry, gotta go fight crime again" />
|
|
|
|
<include layout="@layout/view_typing_indicator"
|
|
android:id="@+id/typingIndicatorView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
app:typingIndicator_tint="?android:textColorPrimary" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/statusIndicatorImageView"
|
|
android:layout_width="@dimen/conversation_view_status_indicator_size"
|
|
android:layout_height="@dimen/conversation_view_status_indicator_size"
|
|
android:layout_marginStart="@dimen/medium_spacing" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</org.thoughtcrime.securesms.home.ConversationView>
|