mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Composer: set max lines to 6 so it can scroll
This commit is contained in:
parent
aa5ae45a0c
commit
e23b02f2e2
4 changed files with 13 additions and 17 deletions
|
@ -158,17 +158,12 @@
|
||||||
|
|
||||||
<im.vector.riotx.features.home.room.detail.composer.ComposerEditText
|
<im.vector.riotx.features.home.room.detail.composer.ComposerEditText
|
||||||
android:id="@+id/composerEditText"
|
android:id="@+id/composerEditText"
|
||||||
|
style="@style/ComposerEditTextStyle"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@android:color/transparent"
|
|
||||||
android:hint="@string/room_message_placeholder_not_encrypted"
|
android:hint="@string/room_message_placeholder_not_encrypted"
|
||||||
android:inputType="textCapSentences|textMultiLine"
|
|
||||||
android:maxHeight="200dp"
|
|
||||||
android:minHeight="48dp"
|
|
||||||
android:nextFocusLeft="@id/composerEditText"
|
android:nextFocusLeft="@id/composerEditText"
|
||||||
android:nextFocusUp="@id/composerEditText"
|
android:nextFocusUp="@id/composerEditText"
|
||||||
android:padding="8dp"
|
|
||||||
android:textSize="14sp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/attachmentButton"
|
app:layout_constraintEnd_toStartOf="@+id/attachmentButton"
|
||||||
app:layout_constraintStart_toEndOf="@+id/composer_shield"
|
app:layout_constraintStart_toEndOf="@+id/composer_shield"
|
||||||
|
|
|
@ -168,16 +168,11 @@
|
||||||
|
|
||||||
<im.vector.riotx.features.home.room.detail.composer.ComposerEditText
|
<im.vector.riotx.features.home.room.detail.composer.ComposerEditText
|
||||||
android:id="@+id/composerEditText"
|
android:id="@+id/composerEditText"
|
||||||
|
style="@style/ComposerEditTextStyle"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@android:color/transparent"
|
|
||||||
android:hint="@string/room_message_placeholder_not_encrypted"
|
|
||||||
android:inputType="textCapSentences|textMultiLine"
|
|
||||||
android:minHeight="48dp"
|
|
||||||
android:nextFocusLeft="@id/composerEditText"
|
android:nextFocusLeft="@id/composerEditText"
|
||||||
android:nextFocusUp="@id/composerEditText"
|
android:nextFocusUp="@id/composerEditText"
|
||||||
android:padding="8dp"
|
|
||||||
android:textSize="14sp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/sendButton"
|
app:layout_constraintEnd_toStartOf="@+id/sendButton"
|
||||||
app:layout_constraintStart_toEndOf="@id/composer_avatar_view"
|
app:layout_constraintStart_toEndOf="@id/composer_avatar_view"
|
||||||
|
|
|
@ -123,15 +123,11 @@
|
||||||
|
|
||||||
<im.vector.riotx.features.home.room.detail.composer.ComposerEditText
|
<im.vector.riotx.features.home.room.detail.composer.ComposerEditText
|
||||||
android:id="@+id/composerEditText"
|
android:id="@+id/composerEditText"
|
||||||
|
style="@style/ComposerEditTextStyle"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@android:color/transparent"
|
|
||||||
android:inputType="textCapSentences|textMultiLine"
|
|
||||||
android:nextFocusLeft="@id/composerEditText"
|
android:nextFocusLeft="@id/composerEditText"
|
||||||
android:nextFocusUp="@id/composerEditText"
|
android:nextFocusUp="@id/composerEditText"
|
||||||
android:padding="8dp"
|
|
||||||
android:textColor="?vctr_message_text_color"
|
|
||||||
android:textSize="14sp"
|
|
||||||
tools:hint="@string/room_message_placeholder_not_encrypted"
|
tools:hint="@string/room_message_placeholder_not_encrypted"
|
||||||
tools:ignore="MissingConstraints" />
|
tools:ignore="MissingConstraints" />
|
||||||
|
|
||||||
|
|
|
@ -385,4 +385,14 @@
|
||||||
<item name="android:maxHeight">40dp</item>
|
<item name="android:maxHeight">40dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="ComposerEditTextStyle" parent="Widget.AppCompat.EditText">
|
||||||
|
<item name="android:background">@android:color/transparent</item>
|
||||||
|
<item name="android:inputType">textCapSentences|textMultiLine</item>
|
||||||
|
<item name="android:maxLines">6</item>
|
||||||
|
<item name="android:minHeight">48dp</item>
|
||||||
|
<item name="android:padding">8dp</item>
|
||||||
|
<item name="android:textSize">15sp</item>
|
||||||
|
<item name="android:textColor">?vctr_message_text_color</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
Loading…
Reference in a new issue