Code example for InputConnection

Methods: beginBatchEdit, commitText, endBatchEdit

0
    outInsets.contentTopInsets = outInsets.visibleTopInsets;
  } 
 
  @Override 
  public View onCreateInputView() {
    inputView = (SoftKeyboardView) getLayoutInflater().inflate(
        R.layout.input, null); 
    inputView.setOnKeyboardActionListener(this);
    return inputView;
  } 
 
  @Override 
  public View onCreateCandidatesView() {
    candidatesContainer = (CandidatesContainer) getLayoutInflater().inflate(
        R.layout.candidates, null); 
    candidatesContainer.setCandidateViewListener(this);
    return candidatesContainer;
  } 
 
  @Override 
  public void onStartInputView(EditorInfo attribute, boolean restarting) {