element-android/vector/src/main/res/layout/composer_layout.xml

142 lines
5.4 KiB
XML
Raw Normal View History

2019-05-23 17:44:51 +03:00
<?xml version="1.0" encoding="utf-8"?>
<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"
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"
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"
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"
android:background="?riotx_bottom_nav_background_border_color"
2019-05-23 17:44:51 +03:00
tools:ignore="MissingConstraints" />
<ImageView
android:id="@+id/composerRelatedMessageAvatar"
android:layout_width="0dp"
android:layout_height="0dp"
2021-02-12 19:44:12 +03:00
android:contentDescription="@string/avatar"
tools:ignore="MissingConstraints"
tools:src="@tools:sample/avatars" />
2019-05-23 17:44:51 +03:00
<TextView
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" />
<TextView
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
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"
app:tint="?riotx_text_primary"
tools:ignore="MissingConstraints,MissingPrefix" />
2019-05-23 17:44:51 +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
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"
android:contentDescription="@string/cancel"
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"
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
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
<im.vector.app.features.home.room.detail.composer.ComposerEditText
2019-05-23 17:44:51 +03:00
android:id="@+id/composerEditText"
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"
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
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" />
</merge>