diff --git a/library/ui-styles/src/main/res/color/form_edit_text_hint_color_selector.xml b/library/ui-styles/src/main/res/color/form_edit_text_hint_color_selector.xml new file mode 100644 index 0000000000..343c42ebf3 --- /dev/null +++ b/library/ui-styles/src/main/res/color/form_edit_text_hint_color_selector.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/library/ui-styles/src/main/res/color/form_edit_text_stroke_color_selector.xml b/library/ui-styles/src/main/res/color/form_edit_text_stroke_color_selector.xml new file mode 100644 index 0000000000..7079cc271b --- /dev/null +++ b/library/ui-styles/src/main/res/color/form_edit_text_stroke_color_selector.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/library/ui-styles/src/main/res/values/styles_edit_text.xml b/library/ui-styles/src/main/res/values/styles_edit_text.xml index cc1041a2ce..a1a9f6a7e8 100644 --- a/library/ui-styles/src/main/res/values/styles_edit_text.xml +++ b/library/ui-styles/src/main/res/values/styles_edit_text.xml @@ -19,4 +19,9 @@ ?vctr_message_text_color + + \ No newline at end of file diff --git a/library/ui-styles/src/main/res/values/styles_polls.xml b/library/ui-styles/src/main/res/values/styles_polls.xml new file mode 100644 index 0000000000..ac99a6514b --- /dev/null +++ b/library/ui-styles/src/main/res/values/styles_polls.xml @@ -0,0 +1,10 @@ + + + + + + diff --git a/vector/src/main/java/im/vector/app/features/form/FormEditTextWithDeleteItem.kt b/vector/src/main/java/im/vector/app/features/form/FormEditTextWithDeleteItem.kt index a4e378a5b9..19c94a1742 100644 --- a/vector/src/main/java/im/vector/app/features/form/FormEditTextWithDeleteItem.kt +++ b/vector/src/main/java/im/vector/app/features/form/FormEditTextWithDeleteItem.kt @@ -44,6 +44,12 @@ abstract class FormEditTextWithDeleteItem : VectorEpoxyModel + val imeOptions = if (index == currentState.options.size -1) EditorInfo.IME_ACTION_DONE else EditorInfo.IME_ACTION_NEXT formEditTextWithDeleteItem { id("option_$index") value(option) hint(host.stringProvider.getString(R.string.create_poll_options_hint, (index + 1))) + singleLine(true) + imeOptions(imeOptions) onTextChange { host.callback?.onOptionChanged(index, it) } diff --git a/vector/src/main/res/layout/fragment_create_poll.xml b/vector/src/main/res/layout/fragment_create_poll.xml index 841f52f2d8..1911aaefc9 100644 --- a/vector/src/main/res/layout/fragment_create_poll.xml +++ b/vector/src/main/res/layout/fragment_create_poll.xml @@ -14,7 +14,8 @@ + android:layout_height="?actionBarSize" + app:contentInsetStart="0dp"> + app:layout_constraintBottom_toBottomOf="parent" + tools:enabled="false" />