2019-05-23 17:44:51 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-05-25 15:49:35 +03:00
|
|
|
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-05-23 17:44:51 +03:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-12-11 13:49:46 +03:00
|
|
|
tools:constraintSet="@layout/composer_layout_constraint_set_compact"
|
2019-05-25 15:49:35 +03:00
|
|
|
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
2019-05-23 17:44:51 +03:00
|
|
|
|
|
|
|
<!-- ========================
|
|
|
|
/!\ Constraints for this layout are defined in external layout files that are used as constraint set for animation.
|
|
|
|
/!\ These 3 files must be modified to stay coherent!
|
|
|
|
======================== -->
|
|
|
|
<View
|
2020-12-11 14:09:08 +03:00
|
|
|
android:id="@+id/related_message_background"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:background="?colorSurface"
|
2019-05-23 17:44:51 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/related_message_background_top_separator"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-06-09 12:51:04 +03:00
|
|
|
android:background="?vctr_list_separator"
|
2019-05-23 17:44:51 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
2019-05-25 15:49:35 +03:00
|
|
|
<ImageView
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/composerRelatedMessageAvatar"
|
2019-05-25 15:49:35 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-08-01 23:03:59 +03:00
|
|
|
android:importantForAccessibility="no"
|
2021-05-10 23:34:13 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
2019-05-25 15:49:35 +03:00
|
|
|
|
2019-05-23 17:44:51 +03:00
|
|
|
<TextView
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/composerRelatedMessageTitle"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
tools:ignore="MissingConstraints"
|
|
|
|
tools:text="@tools:sample/first_names"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
2020-07-10 23:35:51 +03:00
|
|
|
<TextView
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/composerRelatedMessageContent"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="3"
|
|
|
|
android:textColor="?vctr_message_text_color"
|
|
|
|
tools:ignore="MissingConstraints"
|
|
|
|
tools:text="@tools:sample/lorem"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<ImageView
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/composerRelatedMessageActionIcon"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-02-12 20:57:03 +03:00
|
|
|
android:importantForAccessibility="no"
|
2021-06-09 12:51:04 +03:00
|
|
|
app:tint="?vctr_content_primary"
|
2020-12-09 18:47:34 +03:00
|
|
|
tools:ignore="MissingConstraints,MissingPrefix" />
|
2019-05-23 17:44:51 +03:00
|
|
|
|
2021-03-19 22:09:53 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/composerRelatedMessageImage"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
|
2019-05-23 17:44:51 +03:00
|
|
|
<ImageButton
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/composerRelatedMessageCloseButton"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="22dp"
|
|
|
|
android:layout_height="22dp"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2019-06-30 20:41:42 +03:00
|
|
|
android:contentDescription="@string/cancel"
|
2019-10-07 19:05:06 +03:00
|
|
|
android:src="@drawable/ic_close_round"
|
2021-06-09 12:51:04 +03:00
|
|
|
app:tint="?colorError"
|
2021-05-20 19:51:09 +03:00
|
|
|
tools:ignore="MissingConstraints,MissingPrefix" />
|
2019-05-23 17:44:51 +03:00
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/composer_preview_barrier"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
app:barrierMargin="8dp"
|
2020-12-15 22:32:26 +03:00
|
|
|
app:constraint_referenced_ids="composerRelatedMessageContent,composerRelatedMessageActionIcon"
|
2019-05-23 17:44:51 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
<ImageButton
|
2020-12-11 15:18:22 +03:00
|
|
|
android:id="@+id/attachmentButton"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-12-11 15:18:22 +03:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/option_send_files"
|
|
|
|
android:src="@drawable/ic_attachment"
|
2019-05-23 17:44:51 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
2021-06-09 18:35:01 +03:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/composerEditTextOuterBorder"
|
2020-12-11 15:18:22 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-06-09 18:35:01 +03:00
|
|
|
android:background="@drawable/bg_composer_edit_text" />
|
2020-12-11 15:18:22 +03:00
|
|
|
|
2020-08-03 19:23:05 +03:00
|
|
|
<im.vector.app.features.home.room.detail.composer.ComposerEditText
|
2019-05-23 17:44:51 +03:00
|
|
|
android:id="@+id/composerEditText"
|
2021-06-16 12:59:08 +03:00
|
|
|
style="@style/Widget.Vector.EditText.Composer"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:nextFocusLeft="@id/composerEditText"
|
|
|
|
android:nextFocusUp="@id/composerEditText"
|
2019-06-26 19:49:55 +03:00
|
|
|
tools:hint="@string/room_message_placeholder_not_encrypted"
|
2019-05-23 17:44:51 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
2020-12-11 15:18:22 +03:00
|
|
|
<ImageButton
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/composerEmojiButton"
|
2020-12-11 15:18:22 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2021-02-12 21:00:12 +03:00
|
|
|
android:contentDescription="@string/a11y_open_emoji_picker"
|
2020-12-11 15:18:22 +03:00
|
|
|
android:src="@drawable/ic_insert_emoji"
|
2021-06-09 18:52:13 +03:00
|
|
|
app:tint="?vctr_content_tertiary"
|
2021-06-09 18:35:01 +03:00
|
|
|
tools:ignore="MissingConstraints,MissingPrefix" />
|
2020-12-11 15:18:22 +03:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/sendButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="@drawable/bg_send"
|
|
|
|
android:contentDescription="@string/send"
|
|
|
|
android:src="@drawable/ic_send"
|
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
2021-07-01 10:47:41 +03:00
|
|
|
<!--
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/voiceMessageMicButton"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:contentDescription="@string/a11y_start_voice_message"
|
|
|
|
android:src="@drawable/ic_voice_mic" />
|
|
|
|
-->
|
2021-06-17 16:17:38 +03:00
|
|
|
|
2019-06-29 23:05:36 +03:00
|
|
|
</merge>
|