Example usage for android.graphics.drawable VectorDrawable canApplyTheme

List of usage examples for android.graphics.drawable VectorDrawable canApplyTheme

Introduction

In this page you can find the example usage for android.graphics.drawable VectorDrawable canApplyTheme.

Prototype

@Override
    public boolean canApplyTheme() 

Source Link

Usage

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

@Override
public void applyTheme(Theme t) {
    super.applyTheme(t);

    final VectorDrawable vectorDrawable = mAnimatedVectorState.mVectorDrawable;
    if (vectorDrawable != null && vectorDrawable.canApplyTheme()) {
        vectorDrawable.applyTheme(t);/*from www .  j a v  a 2s . c o  m*/
    }
}