mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
70f0dad36e
Updated a number of nested layout components to be included instead of inflated Added a couple of optimisations to the EmojiTextView Fixed an issue where long conversation titles could squish the unread count Fixed an issue where the typing indicator wasn't working on the home screen
114 lines
No EOL
4.7 KiB
XML
114 lines
No EOL
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.conversation.v2.messages.QuoteView
|
|
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:id="@+id/mainQuoteViewContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?input_bar_background"
|
|
android:paddingHorizontal="@dimen/medium_spacing"
|
|
android:paddingVertical="@dimen/small_spacing"
|
|
app:quote_mode="draft">
|
|
|
|
<View
|
|
android:id="@+id/quoteViewAccentLine"
|
|
android:layout_width="@dimen/accent_line_thickness"
|
|
android:layout_height="0dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginVertical="4dp"
|
|
android:background="?android:textColorPrimary"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintHorizontal_bias="0"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<RelativeLayout
|
|
tools:visibility="visible"
|
|
android:id="@+id/quoteViewAttachmentPreviewContainer"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginVertical="@dimen/small_spacing"
|
|
android:background="@drawable/view_quote_attachment_preview_background"
|
|
app:layout_constraintHorizontal_bias="0"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/quoteViewAttachmentPreviewImageView"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_centerInParent="true"
|
|
android:scaleType="centerInside"
|
|
android:src="@drawable/ic_microphone" />
|
|
|
|
<include layout="@layout/thumbnail_view"
|
|
android:id="@+id/quoteViewAttachmentThumbnailImageView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:visibility="gone" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
android:id="@+id/quoteStartBarrier"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:orientation="vertical"
|
|
app:barrierDirection="end"
|
|
app:constraint_referenced_ids="quoteViewAttachmentPreviewContainer,quoteViewAccentLine" />
|
|
|
|
<LinearLayout
|
|
android:layout_marginVertical="@dimen/small_spacing"
|
|
android:id="@+id/quoteTextParent"
|
|
android:layout_marginStart="@dimen/medium_spacing"
|
|
android:layout_marginEnd="@dimen/medium_spacing"
|
|
app:layout_constraintHorizontal_bias="0"
|
|
app:layout_constraintStart_toEndOf="@+id/quoteStartBarrier"
|
|
app:layout_constraintEnd_toStartOf="@id/quoteViewCancelButton"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:orientation="vertical"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
tools:visibility="gone"
|
|
android:id="@+id/quoteViewAuthorTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/small_font_size"
|
|
android:textStyle="bold"
|
|
tools:text="Spiderman" />
|
|
|
|
<TextView
|
|
android:id="@+id/quoteViewBodyTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="3"
|
|
android:textColor="?android:textColorPrimary"
|
|
android:textSize="@dimen/small_font_size"
|
|
tools:text="@tools:sample/lorem/random" />
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
tools:visibility="gone"
|
|
android:id="@+id/quoteViewCancelButton"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginStart="@dimen/small_spacing"
|
|
android:layout_marginEnd="@dimen/small_spacing"
|
|
android:padding="6dp"
|
|
android:src="@drawable/ic_close_white_48dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="?android:textColorPrimary" />
|
|
|
|
</org.thoughtcrime.securesms.conversation.v2.messages.QuoteView> |