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);
}
}
Aggregations