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

147 lines
5.5 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"
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" />
<ImageView
android:id="@+id/composerRelatedMessageAvatar"
android:layout_width="0dp"
android:layout_height="0dp"
android:importantForAccessibility="no"
tools:ignore="MissingConstraints" />
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"
2021-06-09 12:51:04 +03:00
app:tint="?vctr_content_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"
2022-01-04 16:15:46 +03:00
android:contentDescription="@string/action_cancel"
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"
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" />
<FrameLayout
android:id="@+id/composerEditTextOuterBorder"
2020-12-11 15:18:22 +03:00
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/bg_composer_edit_text" />
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/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"
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"
2021-06-09 18:52:13 +03:00
app:tint="?vctr_content_tertiary"
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"
2022-01-04 16:15:46 +03:00
android:contentDescription="@string/action_send"
2020-12-11 15:18:22 +03:00
android:src="@drawable/ic_send"
tools:ignore="MissingConstraints" />
<!--
<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" />
-->
</merge>