android - How to add custom InputMethodService to Activity? -


i decided create custom keyboard application. know not best idea, since it's hurting user friendliness, that's why make optional in preferences.

after having done in class public class customkeyboard extends inputmethodservice implements keyboardview.onkeyboardactionlistener. struggle add softinputmethod. tried inputmethodmanager incompatible types when casting it.

i found can w/o service highly unrecommended , need whole new implementation.

ideally, use edittext command line in app. direct binding job.

after hiding system input method, how make input service default one?

thanks.



p.s. if there obvious easy way this, sorry, made transition android , still learning.

use android:inputmethod on text field want change input method on. see https://developer.android.com/reference/android/widget/textview.html#attr_android:inputmethod

you cannot set default input method entire device, can override on field field basis in app. adding default input method activity or application's theme should override text views in app.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -