Пример #1
0
 public void openPanel() {
   setVisibility(View.VISIBLE);
   updateUiElements();
   if (mInputMethodSwitchButton != null) {
     mInputMethodSwitchButton.setIconImage(R.drawable.ic_sysbar_ime_pressed);
   }
 }
Пример #2
0
 public void closePanel(boolean closeKeyboard) {
   setVisibility(View.GONE);
   if (mInputMethodSwitchButton != null) {
     mInputMethodSwitchButton.setIconImage(R.drawable.ic_sysbar_ime);
   }
   if (closeKeyboard) {
     mImm.hideSoftInputFromWindow(getWindowToken(), 0);
   }
 }