Search in sources :

Example 1 with AnimatedVectorDrawable

use of is.arontibo.library.VectorCompat.AnimatedVectorDrawable in project ElasticDownload by Tibolte.

the class IntroView method init.

/**
     * MARK: Public functions
     */
public void init() {
    // Reset the image view drawable if needed, we use the transparent color to remove it
    setImageResource(android.R.color.transparent);
    if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        setImageResource(R.drawable.avd_start);
        Drawable drawable = getDrawable();
        drawable.invalidateSelf();
    } else {
        AnimatedVectorDrawable drawable = AnimatedVectorDrawable.getDrawable(getContext(), R.drawable.avd_start);
        setImageDrawable(drawable);
    }
}
Also used : AnimatedVectorDrawable(is.arontibo.library.VectorCompat.AnimatedVectorDrawable) Drawable(android.graphics.drawable.Drawable) AnimatedVectorDrawable(is.arontibo.library.VectorCompat.AnimatedVectorDrawable)

Aggregations

Drawable (android.graphics.drawable.Drawable)1 AnimatedVectorDrawable (is.arontibo.library.VectorCompat.AnimatedVectorDrawable)1