Code example for InputMethodManager

Methods: hideSoftInputFromWindowshowSoftInput

0
 
  @Test 
  public void shouldRecordSoftInputVisibility() { 
    assertThat(shadow.isSoftInputVisible()).isFalse();
 
    manager.showSoftInput(null, 0);
    assertThat(shadow.isSoftInputVisible()).isTrue();
 
    manager.hideSoftInputFromWindow(null, 0);
    assertThat(shadow.isSoftInputVisible()).isFalse();
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE