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
|
|
|
|
android:id="@+id/composer_related_message_avatar_view"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
tools:ignore="MissingConstraints"
|
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
2020-04-10 18:42:34 +03:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/composer_shield"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
tools:ignore="MissingConstraints"
|
|
|
|
tools:src="@drawable/ic_shield_black" />
|
|
|
|
|
2019-05-23 17:44:51 +03:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/composer_related_message_sender"
|
|
|
|
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
|
2019-05-23 17:44:51 +03:00
|
|
|
android:id="@+id/composer_related_message_preview"
|
|
|
|
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
|
|
|
|
android:id="@+id/composer_related_message_action_image"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
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
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/composer_related_message_close"
|
|
|
|
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" />
|
|
|
|
|
2020-12-09 18:47:34 +03:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/composer_emoji"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-12-09 18:47:34 +03:00
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:src="@drawable/ic_insert_emoji"
|
|
|
|
tools:ignore="MissingConstraints" />
|
2019-05-23 17:44:51 +03:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/attachmentButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
2019-06-29 23:05:36 +03:00
|
|
|
android:contentDescription="@string/option_send_files"
|
2019-10-07 19:05:06 +03:00
|
|
|
android:src="@drawable/ic_attachment"
|
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"
|
|
|
|
app:constraint_referenced_ids="composer_related_message_preview,composer_related_message_action_image"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/sendButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-12-09 18:47:34 +03:00
|
|
|
android:background="@drawable/bg_send"
|
2019-09-23 17:17:28 +03:00
|
|
|
android:contentDescription="@string/send"
|
2019-05-23 17:44:51 +03:00
|
|
|
android:src="@drawable/ic_send"
|
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
|
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" />
|
|
|
|
|
2019-06-29 23:05:36 +03:00
|
|
|
</merge>
|