2020-08-20 13:05:23 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-01-13 13:22:25 +00:00
|
|
|
<awais.instagrabber.customviews.DirectItemFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-08-20 13:05:23 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-11-04 14:58:06 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-08-20 13:05:23 +00:00
|
|
|
android:layout_width="match_parent"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="wrap_content"
|
2020-08-20 13:05:23 +00:00
|
|
|
android:layout_height="wrap_content"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:layout_gravity="start"
|
2021-01-13 13:22:25 +00:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingEnd="4dp"
|
|
|
|
tools:layout_gravity="end"
|
|
|
|
tools:paddingBottom="@dimen/dm_reaction_adjust_margin">
|
2021-01-02 02:54:32 +00:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/quote_line"
|
|
|
|
android:layout_width="4dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@drawable/bg_quote_line"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/reply_container"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/reply_container"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-01-15 18:10:17 +00:00
|
|
|
tools:visibility="gone" />
|
2021-01-02 02:54:32 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/reply_info"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/reply_container"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/quote_line"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-01-15 18:10:17 +00:00
|
|
|
app:layout_goneMarginStart="0dp"
|
2021-01-02 02:54:32 +00:00
|
|
|
tools:text="Replied to you" />
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/reply_container"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/tvUsername"
|
2021-01-15 18:10:17 +00:00
|
|
|
|
2021-01-02 02:54:32 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="1"
|
|
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/quote_line"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/reply_info">
|
|
|
|
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
|
|
android:id="@+id/reply_image"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:actualImageScaleType="centerCrop"
|
|
|
|
app:roundedCornerRadius="@dimen/dm_message_card_radius"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/reply_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/bg_reply_text"
|
|
|
|
android:padding="@dimen/dm_message_card_radius_small"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="Some message"
|
2021-01-15 18:10:17 +00:00
|
|
|
tools:visibility="gone" />
|
2021-01-02 02:54:32 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.CircularImageView
|
|
|
|
android:id="@+id/ivProfilePic"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/chat_message_layout"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvUsername"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/background"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/chat_message_layout"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/chat_message_layout"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/chat_message_layout"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/tvUsername"
|
|
|
|
tools:background="@drawable/bg_speech_bubble_incoming" />
|
2020-08-20 13:05:23 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/tvUsername"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:layout_width="wrap_content"
|
2020-08-20 13:05:23 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:paddingStart="@dimen/dm_message_card_radius"
|
|
|
|
android:paddingTop="@dimen/dm_message_card_radius_small"
|
|
|
|
android:paddingEnd="@dimen/dm_message_card_radius"
|
|
|
|
android:paddingBottom="4dp"
|
2020-08-20 13:05:23 +00:00
|
|
|
android:singleLine="true"
|
2021-03-25 12:07:16 +00:00
|
|
|
android:textColor="@color/white"
|
2021-01-02 02:54:32 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/chat_message_layout"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/chat_message_layout"
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/chat_message_layout"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/reply_container"
|
|
|
|
tools:text="@string/app_name"
|
|
|
|
tools:visibility="visible" />
|
2020-08-20 13:05:23 +00:00
|
|
|
|
2021-01-13 13:22:25 +00:00
|
|
|
<!--app:layout_constraintBottom_toTopOf="@id/reactions"-->
|
2021-01-02 02:54:32 +00:00
|
|
|
<awais.instagrabber.customviews.ChatMessageLayout
|
|
|
|
android:id="@+id/chat_message_layout"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/ivProfilePic"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvUsername"
|
|
|
|
app:layout_constraintWidth_min="wrap"
|
|
|
|
app:viewPartInfo="@id/message_info"
|
|
|
|
app:viewPartMain="@id/message">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/message"
|
|
|
|
android:layout_width="wrap_content"
|
2021-01-13 13:22:25 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:layout_height="200dp"
|
2021-05-10 14:03:37 +00:00
|
|
|
tools:layout_width="100dp">
|
|
|
|
<!--<include layout="@layout/layout_dm_text" />-->
|
|
|
|
</FrameLayout>
|
2021-01-02 02:54:32 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/message_info"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|bottom"
|
|
|
|
android:gravity="end|bottom"
|
|
|
|
android:minWidth="60dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingBottom="@dimen/dm_message_card_radius_small">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/message_time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
|
|
|
|
android:textColor="@color/grey_500"
|
|
|
|
tools:text="12:00 am" />
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/delivery_status"
|
|
|
|
android:layout_width="16dp"
|
|
|
|
android:layout_height="16dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:gravity="center_vertical"
|
2021-01-13 13:22:25 +00:00
|
|
|
android:visibility="gone"
|
2021-01-02 02:54:32 +00:00
|
|
|
app:srcCompat="@drawable/ic_check_all_24"
|
|
|
|
app:tint="@color/grey_500"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</awais.instagrabber.customviews.ChatMessageLayout>
|
|
|
|
|
2021-05-10 14:03:37 +00:00
|
|
|
<!--<TextView-->
|
|
|
|
<!-- android:tag="debug"-->
|
|
|
|
<!-- android:textColor="@color/white"-->
|
|
|
|
<!-- android:layout_width="0dp"-->
|
|
|
|
<!-- android:visibility="visible"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:background="@color/black"-->
|
|
|
|
<!-- app:layout_constraintTop_toTopOf="parent"-->
|
|
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"/>-->
|
|
|
|
|
2021-01-14 17:24:12 +00:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/reactions_wrapper"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:layout_width="0dp"
|
2020-08-20 13:05:23 +00:00
|
|
|
android:layout_height="wrap_content"
|
2021-01-13 13:22:25 +00:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
2021-01-14 17:24:12 +00:00
|
|
|
android:paddingBottom="2dp"
|
2021-01-13 13:22:25 +00:00
|
|
|
android:translationY="@dimen/dm_reaction_translation_y_type_1"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:visibility="gone"
|
2021-01-13 13:22:25 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-01-02 02:54:32 +00:00
|
|
|
app:layout_constraintStart_toStartOf="@id/chat_message_layout"
|
2021-01-13 13:22:25 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="parent"
|
2021-01-14 17:24:12 +00:00
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.ReactionEmojiTextView
|
|
|
|
android:id="@+id/emojis"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/bg_rounded_corner"
|
|
|
|
android:elevation="1dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:padding="4dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="18sp"
|
|
|
|
tools:text="😀😀😀😀😀😀😀" />
|
|
|
|
</FrameLayout>
|
2021-01-02 02:54:32 +00:00
|
|
|
|
2021-01-13 13:22:25 +00:00
|
|
|
<!--<FrameLayout-->
|
|
|
|
<!-- android:id="@+id/reactions"-->
|
|
|
|
<!-- android:layout_width="0dp"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:background="@drawable/bg_rounded_corner"-->
|
|
|
|
<!-- android:elevation="1dp"-->
|
|
|
|
<!-- android:visibility="gone"-->
|
|
|
|
<!-- app:layout_constraintEnd_toEndOf="@id/chat_message_layout"-->
|
|
|
|
<!-- app:layout_constraintStart_toStartOf="@id/chat_message_layout"-->
|
|
|
|
<!-- app:layout_constraintTop_toBottomOf="@id/chat_message_layout"-->
|
|
|
|
<!-- tools:visibility="visible">-->
|
|
|
|
|
|
|
|
<!-- <androidx.appcompat.widget.AppCompatTextView-->
|
|
|
|
<!-- android:id="@+id/emojis"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:padding="4dp"-->
|
|
|
|
<!-- android:textColor="?android:textColorPrimary"-->
|
|
|
|
<!-- tools:text="😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀" />-->
|
|
|
|
<!--</FrameLayout>-->
|
2021-01-02 02:54:32 +00:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2021-01-13 13:22:25 +00:00
|
|
|
</awais.instagrabber.customviews.DirectItemFrameLayout>
|