I used context.getDrawable() as in my project:
Drawable greenProgressbar = context.getDrawable(R.drawable.custom_progressbargreen);
But Eclipse tells me that it needs a Minimum API level of 21 . This would mean that after a quick Google search, my APP would only be used on Android 5.0 . Since not all devices use this version of Android, I would like to have an alternative for context.getDrawable() .
java android eclipse android-drawable
Bram Jan 06 '15 at 10:03 2015-01-06 10:03
source share