List of usage examples for android.content.res Configuration KEYBOARDHIDDEN_YES
int KEYBOARDHIDDEN_YES
To view the source code for android.content.res Configuration KEYBOARDHIDDEN_YES.
Click Source Link
From source file:com.renard.documentview.DocumentPagerFragment.java
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); boolean isKeyboardHidden = Configuration.KEYBOARDHIDDEN_YES == newConfig.hardKeyboardHidden || Configuration.HARDKEYBOARDHIDDEN_YES == newConfig.hardKeyboardHidden; boolean isKeyboardShown = Configuration.KEYBOARDHIDDEN_NO == newConfig.hardKeyboardHidden || Configuration.HARDKEYBOARDHIDDEN_NO == newConfig.hardKeyboardHidden; // DocumentPagerFragment pagerFragment = (DocumentPagerFragment) // getSupportFragmentManager().findFragmentById(R.id.document_fragment_container); // if (pagerFragment!=null){ if (isKeyboardShown) { showTitleIndicator(false);/*w w w.j a va 2s.co m*/ } else if (isKeyboardHidden) { showTitleIndicator(true); } // } }
From source file:com.renard.ocr.documents.viewing.single.DocumentPagerFragment.java
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); boolean isKeyboardHidden = Configuration.KEYBOARDHIDDEN_YES == newConfig.hardKeyboardHidden; boolean isKeyboardShown = Configuration.KEYBOARDHIDDEN_NO == newConfig.hardKeyboardHidden; if (isKeyboardShown) { showTitleIndicator(false);/*from w w w. ja va2 s . com*/ } else if (isKeyboardHidden) { showTitleIndicator(true); } }
From source file:com.example.linhdq.test.documents.viewing.single.DocumentPagerFragment.java
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); boolean isKeyboardHidden = Configuration.KEYBOARDHIDDEN_YES == newConfig.hardKeyboardHidden; boolean isKeyboardShown = Configuration.KEYBOARDHIDDEN_NO == newConfig.hardKeyboardHidden; if (isKeyboardShown) { showTitleIndicator(false);//from w ww. j a v a 2 s .c o m } else if (isKeyboardHidden) { showTitleIndicator(true); } }
From source file:com.yek.keyboard.anysoftkeyboard.AnySoftKeyboard.java
/** * Override this to control when the soft input area should be shown to the * user. The default implementation only shows the input view when there is * no hard keyboard or the keyboard is hidden. If you change what this * returns, you will need to call {@link #updateInputViewShown()} yourself * whenever the returned value may have changed to have it re-evalauted and * applied. This needs to be re-coded for Issue 620 *///from w w w . j a va 2 s. c o m @SuppressLint("MissingSuperCall") @Override public boolean onEvaluateInputViewShown() { Configuration config = getResources().getConfiguration(); return config.keyboard == Configuration.KEYBOARD_NOKEYS || config.hardKeyboardHidden == Configuration.KEYBOARDHIDDEN_YES; }