adp-delightful-details
This repository accompanies a blog post I wrote on Android Design Patterns on animated icons.
It contains over 25 AnimatedVectorDrawable
s that you can refer to free of charge. You know... cool animated icons like these!
...or these!
...or this!
...and also this!
...and a bunch of others too!
Additional icon implementations are welcome if you've written anything cool that you want to share... submit a pull request! :)
Some notes on backwards compatibility
-
VectorDrawableCompat
andAnimatedVectorDrawableCompat
can be used on pre-Lollipop devices. Read Chris Banes' blog post for more information. Note that even if an app uses aminSdkVersion
of 21, it is still advantageous to use theVectorDrawableCompat
support library implementation (as it backports new features and fixes some framework bugs that existed on API versions 21-23). Also note that you'll need to assign your vector drawables to yourImageView
s usingapp:srcCompat="@drawable/my_vd_or_avd"
. -
Specifying tints, tint modes and/or theme attributes in
VectorDrawableCompat
XML is supported on all platform versions. Read this blog post for more information. -
AnimatedStateListDrawable
is supported on pre-Lollipop devices if you use support lib v28 or above. Under-the-hood, anAnimatedStateListDrawableCompat
will be inflated instead.