You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to display a MaterialButton containing a multi line string, formatted as android:inputType="textCapSentences".
The text is not rendered multi line, only single line. Even though android:maxLines="10" is set.
This android:inputType="textMultiLine" works, but this android:inputType="textMultiLine|textCapSentences" will ignore textCapSentences. Other inputTypes are ignored as well.
Expected behavior:
The text in the button is rendered multi line, while formatting as textCapSentences.
Workaround:
Set max lines in code.
This btn.setMaxLines(10) renders multiline, with textCapSentences formatting. But not if maxLines only set in XML.
Description:
I want to display a MaterialButton containing a multi line string, formatted as
android:inputType="textCapSentences"
.The text is not rendered multi line, only single line. Even though
android:maxLines="10"
is set.This
android:inputType="textMultiLine"
works, but thisandroid:inputType="textMultiLine|textCapSentences"
will ignoretextCapSentences
. Other inputTypes are ignored as well.Expected behavior:
The text in the button is rendered multi line, while formatting as
textCapSentences
.Workaround:
Set max lines in code.
This
btn.setMaxLines(10)
renders multiline, withtextCapSentences
formatting. But not ifmaxLines
only set in XML.Source code:
Android API version:
21+
Material Library version:
Both versions experience the same behavior.
1.12.0
1.13.0-alpha05
Device:
Emulator 30
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
The text was updated successfully, but these errors were encountered: