Example usage for android.content.res TypedArray getChangingConfigurations

List of usage examples for android.content.res TypedArray getChangingConfigurations

Introduction

In this page you can find the example usage for android.content.res TypedArray getChangingConfigurations.

Prototype

public @Config int getChangingConfigurations() 

Source Link

Document

Return a mask of the configuration parameters for which the values in this typed array may change.

Usage

From source file:com.john.main.Utils.java

@TargetApi(LOLLIPOP)
static int getChangingConfigurations(TypedArray a) {
    if (LOLLIPOP_PLUS) {
        return a.getChangingConfigurations();
    }/* w ww .  j av a2  s .  c  o  m*/
    return 0;
}

From source file:com.wnafee.vector.compat.VectorDrawable.java

public static int getChangingConfigurations(TypedArray a) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        return a.getChangingConfigurations();
    }/*from  w  w w .  j ava  2s  .  c om*/
    return 0;
}