Example usage for android.content.res Configuration SCREENLAYOUT_LONG_NO

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

Introduction

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

Prototype

int SCREENLAYOUT_LONG_NO

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

Click Source Link

Document

Constant for #screenLayout : a #SCREENLAYOUT_LONG_MASK value that corresponds to the notlong resource qualifier.

Usage

From source file:com.adjust.sdk.Util.java

private static String getScreenFormat(final int screenLayout) {
    final int screenFormat = screenLayout & Configuration.SCREENLAYOUT_LONG_MASK;

    switch (screenFormat) {
    case Configuration.SCREENLAYOUT_LONG_YES:
        return LONG;
    case Configuration.SCREENLAYOUT_LONG_NO:
        return NORMAL;
    default:/* w  w w  . ja  v a 2  s.c  om*/
        return UNKNOWN;
    }
}