Code example for KeyboardView

Methods: setKeyboard, setOnKeyboardActionListener

0
     * a configuration change. 
     */ 
    @Override public View onCreateInputView() {
        int inputLayoutId = this.getResources().getIdentifier("input", "layout", getPackageName());
        mInputView = (KeyboardView) getLayoutInflater().inflate(inputLayoutId, null);
        mInputView.setOnKeyboardActionListener(this);
        mInputView.setKeyboard(mVinKeyboard);
        return mInputView;
    } 
 
    /** 
     * Called by the framework when your view for showing candidates needs to 
     * be generated, like {@link #onCreateInputView}. 
     */ 
    @Override public View onCreateCandidatesView() {
        mCandidateView = new CandidateView(this);
        //mCandidateView.setService(this); 
        return mCandidateView;
    } 
 
    /**