¿In what case do I have to use which of them?
In google documentation says:
textMultiLine Can be combined with text and its variations to allow multiple lines of text in the field. If this flag is not set, the text field will be constrained to a single line.
textLongMessage Text that is the content of a long message.
But I wish use an EditText which will is multiline and with the content of a long message.
You can use multiple tags eg
android:inputType="textMultiLine|textLongMessage"
Maybe this can help: https://stackoverflow.com/a/29220766/5923973
Based on that answer and trying different options I can say:
textMultiLine : will give you the possibility to add break lines to your text from the keyboard.
textLongMessage : will make the TextInputEditText to change its height based on its content. So if the text reaches the end of the edit text, then the following words will go below making the edit text to increase the height.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.