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"
|
2020-07-02 19:29:45 +03:00
|
|
|
android:background="?riotx_bottom_nav_background_color"
|
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"
|
2020-07-02 19:29:45 +03:00
|
|
|
android:background="?riotx_bottom_nav_background_border_color"
|
2019-05-23 17:44:51 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/related_message_background_bottom_separator"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-07-02 19:29:45 +03:00
|
|
|
android:background="?riotx_bottom_nav_background_border_color"
|
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-02-12 19:44:12 +03:00
|
|
|
android:contentDescription="@string/avatar"
|
2019-05-25 15:49:35 +03:00
|
|
|
tools:ignore="MissingConstraints"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
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"
|
2020-12-09 18:47:34 +03:00
|
|
|
app:tint="?riotx_text_primary"
|
|
|
|
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"
|
2019-06-06 15:37:30 +03:00
|
|
|
android:tint="@color/riotx_notice"
|
2019-05-23 17:44:51 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
|
|
|
<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-02-12 21:02:19 +03:00
|
|
|
<im.vector.app.core.ui.views.ShieldImageView
|
2020-12-15 22:32:26 +03:00
|
|
|
android:id="@+id/composerShieldImageView"
|
2020-12-11 15:18:22 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2021-02-15 12:08:53 +03:00
|
|
|
tools:ignore="MissingConstraints" />
|
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"
|
2020-07-22 17:02:38 +03:00
|
|
|
style="@style/ComposerEditTextStyle"
|
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"
|
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
|
|
|
<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" />
|
|
|
|
|
2019-06-29 23:05:36 +03:00
|
|
|
</merge>
|