Example usage for android.util TypedValue COMPLEX_UNIT_SHIFT

List of usage examples for android.util TypedValue COMPLEX_UNIT_SHIFT

Introduction

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

Prototype

int COMPLEX_UNIT_SHIFT

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

Click Source Link

Document

Complex data: bit location of unit information.

Usage

From source file:Main.java

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