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