Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What difference between textMultiLine and textImeMultiLine in inputType EditText?

I am trying to understand the difference between the textMultiLine and textImeMultiLine options for android:inputType in an EditText. However I have not been able to understand an answer. The documentation says

IME is a control enabling users to enter text.


but I don't understand how texMultiLine is different from textImeMultiLine.

like image 205
M Karimi Avatar asked Aug 25 '19 10:08

M Karimi


People also ask

What is TextImeMultiLine?

TextImeMultiLine is for accepting text that is, "not directly represented on the keyboard," like from languages such as Chinese, Japanese, and Korean. Ime is input method editor.

What is inputType in android?

The android:inputType attribute allows you to specify various behaviors for the input method. Most importantly, if your text field is intended for basic text input (such as for a text message), you should enable auto spelling correction with the "textAutoCorrect" value.

What is Numbersigned?

noun. Mathematics. a number preceded by a plus sign (+) to indicate a positive quantity or by a minus sign (−) to indicate a negative quantity.

Which button is clicked to submit the value in multi line editor?

Multi-line EditText with Done action button.


2 Answers

TextImeMultiLine: Flag for TYPE_CLASS_TEXT: the regular text view associated with this should not be multi-line,

but when a fullscreen input method is providing text it should use multiple lines if it can.

TextMultiLine: Flag for TYPE_CLASS_TEXT: multiple lines of text can be entered into the field. If this flag is not set, the text field will be constrained to a single line. The IME may also choose not to display an enter key when this flag is not set, as there should be no need to create new lines.

like image 141
X-Black... Avatar answered Nov 15 '22 09:11

X-Black...


What I was able discern in Googling it... TextImeMultiLine is for accepting text that is, "not directly represented on the keyboard," like from languages such as Chinese, Japanese, and Korean. Ime is input method editor.

An IME (input-method editor) is an application that allows a standard keyboard (such as a US-101 keyboard) to be used to type characters and symbols that are not directly represented on the keyboard itself.

https://www.w3.org/TR/ime-api/#IME

like image 43
Jen Avatar answered Nov 15 '22 09:11

Jen