Input field with custom input method

I would like to show a custom input field (in particular, containing only 9-0 and two additional buttons containing a decimal separator (, or.) And a delete button).

I could create a custom IME, but (as far as I know), which should be set by the user as the input method of the entire system. Is there a way to implement an input method and bind it to a specific input field?

Thanks for the help!

+3
source share
2 answers

I think that you are right that you cannot have a custom IME that you use only for certain fields in your application. The user would be included globally by the user.

, , , InputFilter, , .

android:inputType , InputFilter, , IME . Android IME , , :

alt text

+1

, " " , onClick() onTouch() , , , , @Dave Webb. .

0

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


All Articles