2020-07-01 17:08:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-11-04 14:58:06 +00:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-08-06 16:48:52 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2020-09-26 09:14:06 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-07-01 17:08:28 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:clipToPadding="false">
|
2020-08-06 16:48:52 +00:00
|
|
|
|
2021-01-02 02:54:32 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/chats"
|
|
|
|
android:layout_width="0dp"
|
2020-08-15 21:25:57 +00:00
|
|
|
android:layout_height="0dp"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:scrollbars="none"
|
2021-01-16 18:09:07 +00:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/reply_info"
|
2020-11-04 14:58:06 +00:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2021-01-02 02:54:32 +00:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:listitem="@layout/layout_dm_base" />
|
2020-07-01 17:08:28 +00:00
|
|
|
|
2021-01-16 18:09:07 +00:00
|
|
|
<View
|
|
|
|
android:id="@+id/reply_bg"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@drawable/bg_input"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/input_bg"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/input_bg"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/input_bg"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/reply_info"
|
2021-01-19 17:24:49 +00:00
|
|
|
tools:visibility="gone" />
|
2021-01-16 18:09:07 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
|
android:id="@+id/reply_info"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/reply_preview_text"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/reply_preview_image"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/input_bg"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/chats"
|
|
|
|
tools:text="Replying to yourself"
|
2021-01-19 17:24:49 +00:00
|
|
|
tools:visibility="gone" />
|
2021-01-16 18:09:07 +00:00
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiAppCompatTextView
|
|
|
|
android:id="@+id/reply_preview_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Caption"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/input_bg"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/reply_preview_image"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/input_bg"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/reply_info"
|
|
|
|
app:layout_goneMarginTop="8dp"
|
|
|
|
tools:text="Post"
|
2021-01-19 17:24:49 +00:00
|
|
|
tools:visibility="gone" />
|
2021-01-16 18:09:07 +00:00
|
|
|
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
|
|
android:id="@+id/reply_preview_image"
|
|
|
|
android:layout_width="@dimen/dm_inbox_avatar_size_small"
|
|
|
|
android:layout_height="@dimen/dm_inbox_avatar_size_small"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:actualImageScaleType="centerCrop"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/reply_preview_text"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/reply_cancel"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/reply_preview_text"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/reply_info"
|
|
|
|
tools:background="@mipmap/ic_launcher"
|
2021-01-19 17:24:49 +00:00
|
|
|
tools:visibility="gone" />
|
2021-01-16 18:09:07 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:id="@+id/reply_cancel"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/reply_preview_text"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/input_bg"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/reply_preview_image"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/reply_info"
|
|
|
|
app:srcCompat="@drawable/ic_close_24"
|
2021-01-19 17:24:49 +00:00
|
|
|
tools:visibility="gone" />
|
2021-01-16 18:09:07 +00:00
|
|
|
|
|
|
|
<!--<androidx.constraintlayout.widget.Group-->
|
|
|
|
<!-- android:id="@+id/reply_group"-->
|
|
|
|
<!-- android:layout_width="0dp"-->
|
|
|
|
<!-- android:layout_height="0dp"-->
|
|
|
|
<!-- android:visibility="gone"-->
|
|
|
|
<!-- app:constraint_referenced_ids="reply_bg,reply_cancel,reply_info,reply_item_type,reply_preview"-->
|
|
|
|
<!-- tools:visibility="visible" />-->
|
|
|
|
|
2021-01-02 02:54:32 +00:00
|
|
|
<View
|
|
|
|
android:id="@+id/input_bg"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:background="@drawable/bg_input"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/input"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/send"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/input" />
|
2020-08-06 16:48:52 +00:00
|
|
|
|
2021-01-02 02:54:32 +00:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/emoji_toggle"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.Icon.NoInsets"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="2dp"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:scrollbars="none"
|
|
|
|
app:icon="@drawable/ic_face_24"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:iconSize="24dp"
|
|
|
|
app:iconTint="@color/grey_700"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/input_bg"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/input"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/input_bg"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/input"
|
|
|
|
app:rippleColor="@color/grey_500"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.Button.Circle"
|
|
|
|
app:strokeColor="@color/black"
|
|
|
|
app:strokeWidth="1dp" />
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.KeyNotifyingEmojiEditText
|
|
|
|
android:id="@+id/input"
|
|
|
|
android:layout_width="0dp"
|
2020-11-04 14:58:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:background="@android:color/transparent"
|
2021-01-10 09:19:27 +00:00
|
|
|
android:hint="@string/message"
|
2021-01-02 02:54:32 +00:00
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingBottom="12dp"
|
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textColorHint="@color/grey_500"
|
2020-11-04 14:58:06 +00:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-01-02 02:54:32 +00:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/camera"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/emoji_toggle"
|
2021-01-16 18:09:07 +00:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/reply_preview_text"
|
2021-01-02 02:54:32 +00:00
|
|
|
app:layout_goneMarginBottom="4dp"
|
|
|
|
app:layout_goneMarginEnd="24dp" />
|
2020-08-06 16:48:52 +00:00
|
|
|
|
2021-01-02 02:54:32 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/camera"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:paddingEnd="4dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/input_bg"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/gallery"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/input"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/input"
|
|
|
|
app:srcCompat="@drawable/ic_camera_24"
|
|
|
|
tools:visibility="visible" />
|
2020-08-18 20:47:43 +00:00
|
|
|
|
2021-01-02 02:54:32 +00:00
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
android:id="@+id/gallery"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:paddingStart="4dp"
|
|
|
|
android:paddingEnd="4dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:src="@drawable/ic_image_24"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/input_bg"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/send"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/camera"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/input"
|
|
|
|
tools:visibility="visible" />
|
2020-08-15 21:25:57 +00:00
|
|
|
|
2021-01-02 02:54:32 +00:00
|
|
|
<awais.instagrabber.customviews.RecordView
|
|
|
|
android:id="@+id/record_view"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:visibility="visible"
|
|
|
|
app:counter_time_color="@color/white"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/input_bg"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/input_bg"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/input"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/chats"
|
|
|
|
app:slide_to_cancel_arrow="@drawable/recv_ic_arrow"
|
|
|
|
app:slide_to_cancel_arrow_color="@color/white"
|
|
|
|
app:slide_to_cancel_bounds="0dp"
|
|
|
|
app:slide_to_cancel_margin_right="16dp"
|
|
|
|
app:slide_to_cancel_text="Slide To Cancel"
|
|
|
|
app:slide_to_cancel_text_color="@color/white"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.RecordButton
|
|
|
|
android:id="@+id/send"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.Icon.NoInsets"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
app:backgroundTint="@color/blue_900"
|
|
|
|
app:elevation="4dp"
|
|
|
|
app:icon="@drawable/avd_mic_to_send_anim"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:iconSize="24dp"
|
|
|
|
app:iconTint="@color/white"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/input_bg"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/input_bg"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.Button.Circle" />
|
|
|
|
|
|
|
|
<awais.instagrabber.customviews.emoji.EmojiPicker
|
|
|
|
android:id="@+id/emoji_picker"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="250dp"
|
|
|
|
android:translationY="250dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2021-01-13 13:22:25 +00:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/long_click_backdrop"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clickable="true"
|
|
|
|
android:elevation="5dp"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
android:visibility="gone" />
|
2020-11-04 14:58:06 +00:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|