Example usage for android.util TypedValue TYPE_INT_COLOR_ARGB8

List of usage examples for android.util TypedValue TYPE_INT_COLOR_ARGB8

Introduction

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

Prototype

int TYPE_INT_COLOR_ARGB8

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

Click Source Link

Document

The data field holds a color that was originally specified as #aarrggbb.

Usage

From source file:com.nttec.everychan.ui.theme.CustomThemeHelper.java

public static boolean resolveAttribute(int attrId, TypedValue outValue) {
    SparseIntArray customAttrs = currentAttrs;
    if (customAttrs == null)
        return false;
    int index = customAttrs.indexOfKey(attrId);
    if (index < 0)
        return false;
    outValue.type = TypedValue.TYPE_INT_COLOR_ARGB8;
    outValue.data = customAttrs.valueAt(index);
    return true;/*from w w w.  j  a  v  a  2 s . com*/
}