I have a scenario in which I want to set a Drawable depending upon the theme defined.
Drawable
To explain this further, Here is what I have in code:
If you are using support / design library easier way to get drawables now is -
Context.getDrawable(int)
or
ContextCompat.getDrawable(Context, int)
reference - https://plus.google.com/+BenjaminWeiss/posts/M1dYFaobyBM