Example usage for android.content.res Configuration SCREENLAYOUT_SIZE_UNDEFINED

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

Introduction

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

Prototype

int SCREENLAYOUT_SIZE_UNDEFINED

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

Click Source Link

Document

Constant for #screenLayout : a #SCREENLAYOUT_SIZE_MASK value indicating that no size has been set.

Usage

From source file:Main.java

/**
 * Constant for screenLayout: bits that encode the size.
 * @param sl_size_mask "screenLayout & SCREENLAYOUT_SIZE_MASK"
 *//*from   w ww.j  a v  a  2 s .  c o m*/
public static String getSLSizeMaskStr(int sl_size_mask) {
    switch (sl_size_mask) {
    case Configuration.SCREENLAYOUT_SIZE_UNDEFINED://0
        return "SCREENLAYOUT_SIZE_UNDEFINED";
    case Configuration.SCREENLAYOUT_SIZE_SMALL://1
        return "SCREENLAYOUT_SIZE_SMALL";
    case Configuration.SCREENLAYOUT_SIZE_NORMAL://2
        return "SCREENLAYOUT_SIZE_NORMAL";
    case Configuration.SCREENLAYOUT_SIZE_LARGE://3
        return "SCREENLAYOUT_SIZE_LARGE";
    case Configuration.SCREENLAYOUT_SIZE_XLARGE://4
        return "SCREENLAYOUT_SIZE_XLARGE";
    default:
        return UNKNOWN;
    }
}

From source file:com.mruddy.devdataviewer.DevDataListFragment.java

@SuppressLint("InlinedApi")
private static void initMaps() {
    DevDataListFragment.DENSITY_BUCKETS.append(DisplayMetrics.DENSITY_LOW, "LDPI");
    DevDataListFragment.DENSITY_BUCKETS.append(DisplayMetrics.DENSITY_MEDIUM, "MDPI");
    DevDataListFragment.DENSITY_BUCKETS.append(DisplayMetrics.DENSITY_HIGH, "HDPI");
    DevDataListFragment.DENSITY_BUCKETS.append(DisplayMetrics.DENSITY_XHIGH, "XHDPI");
    DevDataListFragment.DENSITY_BUCKETS.append(DisplayMetrics.DENSITY_XXHIGH, "XXHDPI");
    DevDataListFragment.DENSITY_BUCKETS.append(DisplayMetrics.DENSITY_XXXHIGH, "XXXHDPI");
    DevDataListFragment.ROTATION.append(Surface.ROTATION_0, "0");
    DevDataListFragment.ROTATION.append(Surface.ROTATION_90, "90");
    DevDataListFragment.ROTATION.append(Surface.ROTATION_180, "180");
    DevDataListFragment.ROTATION.append(Surface.ROTATION_270, "270");
    DevDataListFragment.ORIENTATION.append(Configuration.ORIENTATION_UNDEFINED, "undefined");
    DevDataListFragment.ORIENTATION.append(Configuration.ORIENTATION_PORTRAIT, "portrait");
    DevDataListFragment.ORIENTATION.append(Configuration.ORIENTATION_LANDSCAPE, "landscape");
    DevDataListFragment.SCREEN_SIZE_BUCKETS.append(Configuration.SCREENLAYOUT_SIZE_UNDEFINED, "undefined");
    DevDataListFragment.SCREEN_SIZE_BUCKETS.append(Configuration.SCREENLAYOUT_SIZE_SMALL, "small");
    DevDataListFragment.SCREEN_SIZE_BUCKETS.append(Configuration.SCREENLAYOUT_SIZE_NORMAL, "normal");
    DevDataListFragment.SCREEN_SIZE_BUCKETS.append(Configuration.SCREENLAYOUT_SIZE_LARGE, "large");
    DevDataListFragment.SCREEN_SIZE_BUCKETS.append(Configuration.SCREENLAYOUT_SIZE_XLARGE, "xlarge");
}