2020-01-13 13:15:20 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout 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/quotedChatMessageView"
|
|
|
|
android:layout_width="match_parent"
|
2020-01-13 14:36:52 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="8dp">
|
2020-01-13 13:15:20 +03:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/quoteColoredView"
|
|
|
|
android:layout_width="2dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_alignBottom="@id/flexboxQuoted"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:background="@color/colorPrimary"></View>
|
|
|
|
|
2020-01-13 14:36:52 +03:00
|
|
|
<ImageView
|
2020-01-13 13:15:20 +03:00
|
|
|
android:id="@+id/quotedUserAvatar"
|
2020-01-13 14:36:52 +03:00
|
|
|
android:layout_width="16dp"
|
|
|
|
android:layout_height="16dp"
|
2020-01-13 13:15:20 +03:00
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginEnd="4dp"
|
2020-01-13 14:08:00 +03:00
|
|
|
android:layout_toEndOf="@id/quoteColoredView"
|
2020-01-13 13:15:20 +03:00
|
|
|
tools:src="@tools:sample/avatars[0]" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/quotedMessageAuthor"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBottom="@id/quotedUserAvatar"
|
2020-01-13 14:08:00 +03:00
|
|
|
android:layout_marginEnd="8dp"
|
2020-01-13 13:15:20 +03:00
|
|
|
android:layout_toEndOf="@id/quotedUserAvatar"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="Mario" />
|
|
|
|
|
|
|
|
<com.google.android.flexbox.FlexboxLayout
|
|
|
|
android:id="@+id/flexboxQuoted"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/quotedUserAvatar"
|
|
|
|
android:layout_alignStart="@id/quotedUserAvatar"
|
2020-01-13 14:36:52 +03:00
|
|
|
android:layout_toStartOf="@id/cancelReplyButton"
|
2020-01-13 13:15:20 +03:00
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:alignContent="stretch"
|
|
|
|
app:alignItems="stretch"
|
|
|
|
app:flexWrap="wrap"
|
2020-01-13 14:36:52 +03:00
|
|
|
app:justifyContent="flex_start">
|
2020-01-13 13:15:20 +03:00
|
|
|
|
2020-01-13 14:36:52 +03:00
|
|
|
<ImageView
|
2020-01-13 13:15:20 +03:00
|
|
|
android:id="@+id/quotedMessageImage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:adjustViewBounds="true"
|
2020-01-13 14:36:52 +03:00
|
|
|
android:scaleType="fitCenter"
|
2020-01-13 13:15:20 +03:00
|
|
|
app:layout_alignSelf="flex_start"
|
|
|
|
app:layout_flexGrow="1"
|
|
|
|
app:layout_wrapBefore="true"
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/quotedMessage"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/quotedMessageImage"
|
|
|
|
android:layout_alignStart="@id/quotedUserAvatar"
|
|
|
|
android:lineSpacingMultiplier="1.2"
|
2020-01-13 14:08:00 +03:00
|
|
|
android:textSize="14sp"
|
2020-01-13 13:15:20 +03:00
|
|
|
app:layout_alignSelf="flex_start"
|
|
|
|
app:layout_flexGrow="1"
|
|
|
|
app:layout_wrapBefore="true"
|
|
|
|
tools:text="Hello, this is me!" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/quotedMessageTime"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_alignSelf="center"
|
|
|
|
tools:text="16:08" />
|
|
|
|
|
|
|
|
</com.google.android.flexbox.FlexboxLayout>
|
|
|
|
|
2020-01-13 14:36:52 +03:00
|
|
|
<ImageButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:background="@drawable/ic_cancel_black_24dp"
|
|
|
|
android:backgroundTint="@color/grey_600"
|
|
|
|
android:id="@+id/cancelReplyButton"/>
|
|
|
|
|
2020-01-13 13:15:20 +03:00
|
|
|
</RelativeLayout>
|