mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
111 lines
No EOL
5 KiB
XML
111 lines
No EOL
5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="@drawable/conversation_view_background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
<FrameLayout
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/search_result_text_parent"
|
|
android:layout_marginVertical="@dimen/small_spacing"
|
|
android:layout_marginStart="@dimen/large_spacing"
|
|
android:layout_marginEnd="@dimen/large_spacing"
|
|
android:id="@+id/search_result_profile_picture_parent"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
<org.thoughtcrime.securesms.components.ProfilePictureView
|
|
android:visibility="gone"
|
|
android:id="@+id/search_result_profile_picture"
|
|
android:layout_width="@dimen/medium_profile_picture_size"
|
|
android:layout_height="@dimen/medium_profile_picture_size"
|
|
/>
|
|
<ImageView
|
|
android:background="@drawable/circle_tintable"
|
|
android:backgroundTint="?colorAccent"
|
|
android:src="@drawable/ic_outline_bookmark_border_24"
|
|
android:padding="4dp"
|
|
android:id="@+id/search_result_saved_messages"
|
|
android:layout_width="@dimen/medium_profile_picture_size"
|
|
android:layout_height="@dimen/medium_profile_picture_size"
|
|
app:tint="@color/white" />
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/search_result_text_parent"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="@dimen/large_spacing"
|
|
app:layout_constraintStart_toEndOf="@+id/search_result_profile_picture_parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_gravity="center"
|
|
android:textSize="@dimen/text_size"
|
|
tools:text="@tools:sample/full_names"
|
|
android:id="@+id/search_result_title"
|
|
android:textStyle="bold"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
/>
|
|
<RelativeLayout
|
|
android:id="@+id/unreadCountIndicator"
|
|
android:layout_width="wrap_content"
|
|
android:maxWidth="40dp"
|
|
android:paddingLeft="4dp"
|
|
android:paddingRight="4dp"
|
|
android:layout_height="20dp"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone"
|
|
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"
|
|
tools:text="8"
|
|
android:textColor="?unreadIndicatorTextColor"
|
|
android:textSize="@dimen/very_small_font_size"
|
|
android:textStyle="bold" />
|
|
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textColor="?android:textColor"
|
|
android:alpha="0.4"
|
|
android:layout_weight="1"
|
|
android:paddingStart="@dimen/small_spacing"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:id="@+id/search_result_timestamp"
|
|
tools:text="@tools:sample/date/hhmmss"
|
|
android:textAlignment="viewEnd"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
<TextView
|
|
tools:text="@tools:sample/full_names"
|
|
android:textSize="@dimen/text_size"
|
|
android:id="@+id/search_result_subtitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?android:textColor"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |