How to use more than one imeOptions in android

Can I use more than 1 imeOptions in Android xml? for the same text field .

eg.

 <EditText android:id="@+id/mywriting" android:imeOptions="actionDone" android:imeOptions="autoText"/> 

Now he gives me an error saying 1 imeOptions has already been used , and I can no longer use

0
source share
2 answers
 <EditText android:id="@+id/mywriting" android:imeOptions="actionDone|autoText" /> 

typo

My bad. The combination of inputType not imeOptions can be combined.

 <EditText android:id="@+id/mywriting" android:inputType="..." android:imeOptions="actionDone" /> 
0
source

Use | combine for example:

 android:imeOptions="actionDone|actionNext" 

In your case, the problem is autoText, which is not a valid value for imeOptions .

0
source

Source: https://habr.com/ru/post/1258420/


All Articles