I am working of new Android L preview and now dealing with tinting concept on drawable.
I want to know if there is anything new regarding drawable tinting in Android L Developer Preview.
I read this this documentation which says:
The Android L Developer Preview enables you to define bitmaps or nine-patches as alpha masks and to tint them using a color resource or a theme attribute that resolves to a color resource (for example,
?android:attr/colorPrimary
). You can create these assets only once and color them automatically to match your theme.
But I didn't understand how it is different from previous version. I know how to use ColorFilter
or PorterDuffColorFilter
to apply tint on image. Any help regarding this will be appreciated.