Example usage for android.content.res Configuration SCREENLAYOUT_LAYOUTDIR_MASK

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

Introduction

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

Prototype

int SCREENLAYOUT_LAYOUTDIR_MASK

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

Click Source Link

Document

Constant for #screenLayout : bits that encode the layout direction.

Usage

From source file:com.android.screenspeak.controller.GestureControllerApp.java

private boolean isScreenLayoutRTL() {
    Configuration config = mService.getResources().getConfiguration();
    if (config == null) {
        return false;
    }/*from  w w  w.  j a va 2s  .  com*/
    return (config.screenLayout
            & Configuration.SCREENLAYOUT_LAYOUTDIR_MASK) == Configuration.SCREENLAYOUT_LAYOUTDIR_RTL;
}