Example usage for android.util TypedValue COMPLEX_UNIT_MASK

List of usage examples for android.util TypedValue COMPLEX_UNIT_MASK

Introduction

In this page you can find the example usage for android.util TypedValue COMPLEX_UNIT_MASK.

Prototype

int COMPLEX_UNIT_MASK

To view the source code for android.util TypedValue COMPLEX_UNIT_MASK.

Click Source Link

Document

Complex data: mask to extract unit information (after shifting by #COMPLEX_UNIT_SHIFT ).

Usage

From source file:Main.java

private static int getComplexUnit(int data) {
    return TypedValue.COMPLEX_UNIT_MASK & (data >> TypedValue.COMPLEX_UNIT_SHIFT);
}