Code example for KeyboardView

Methods: closing, setKeyboard

0
 
	@Override 
	public void onStartInputView(EditorInfo info, boolean restarting) {
		super.onStartInputView(info, restarting);
		// Apply the selected keyboard to the input view. 
		mInputView.setKeyboard(mCurKeyboard);
		mInputView.closing();
		final InputMethodSubtype subtype = mInputMethodManager
				.getCurrentInputMethodSubtype();
 
		// TODO 
		// mInputView.setSubtypeOnSpaceKey(subtype); 
	} 
 
	@Override 
	public void onFinishInput() { 
		super.onFinishInput(); 
 
		// Clear current composing text and candidates. 
		mComposing.setLength(0);
		updateCandidates();