android > InputMethodService input method service event

 

Every time (boot; switch from other input method to current input method)

onInitializeInterface

 

Every time: open an APP at will, execute

onBindInput

onStartInput

 

After booting up <first display> input method soft keyboard;

After switching to the current input method <display for the first time> input method soft keyboard

onCreateInputView

 

Every time: the input box of the current page gets the focus, and the soft keyboard is displayed, execute

onStartInputView

 

 

--------- Timeline ---------

onInitializeInterface

onBindInput

onStartInput

onCreateInputView

onStartInputView

 

** set input view 

setInputView(View view);

 

** Hide keyboard

ThisActivity.this.hideWindow(); 

 

** Monitor input method keyboard disappear/hide

    @Override
    public void onWindowHidden() {
        super.onWindowHidden();
        print("on window hidden");
    }

    @Override
    public void onFinishInput() {
        super.onFinishInput();
        print("on finishinput");
    }

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326489366&siteId=291194637