Example usage for android.content.res Configuration KEYBOARDHIDDEN_NO

List of usage examples for android.content.res Configuration KEYBOARDHIDDEN_NO

Introduction

In this page you can find the example usage for android.content.res Configuration KEYBOARDHIDDEN_NO.

Prototype

int KEYBOARDHIDDEN_NO

To view the source code for android.content.res Configuration KEYBOARDHIDDEN_NO.

Click Source Link

Document

Constant for #keyboardHidden , value corresponding to the keysexposed resource qualifier.

Usage

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   www.  j  av a 2s.  co  m
    } else if (isKeyboardHidden) {
        showTitleIndicator(true);
    }
}

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);/*from   ww w  .  j a  v  a  2s.c  o  m*/
    } 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  w w .  java  2  s. c  om*/
    } else if (isKeyboardHidden) {
        showTitleIndicator(true);
    }
}

From source file:org.loon.framework.android.game.LGameActivity.java

public void onConfigurationChanged(Configuration config) {
    super.onConfigurationChanged(config);
    orientation = config.orientation;//from   www  . j  av a 2s  .c  o  m
    keyboardOpen = config.keyboardHidden == Configuration.KEYBOARDHIDDEN_NO;
    isLandscape = config.orientation == Configuration.ORIENTATION_LANDSCAPE;
}

From source file:com.example.android.bluepayandroidsdk.MainActivity.java

@Override
public void onConfigurationChanged(Configuration newConfig) {

    if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
        //you can make sure if you would change it
    }//from w ww  .  j  ava 2 s.  c  o m
    if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {
        //you can make sure if you would change it
    }
    if (newConfig.keyboardHidden == Configuration.KEYBOARDHIDDEN_NO) {
        //you can make sure if you need change it
    }
    super.onConfigurationChanged(newConfig);
}