Skip to content

Instantly share code, notes, and snippets.

@iZiMO
Created April 16, 2016 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iZiMO/444babb2e27cd85bb0acb983a09e86ee to your computer and use it in GitHub Desktop.
Save iZiMO/444babb2e27cd85bb0acb983a09e86ee to your computer and use it in GitHub Desktop.
Load drawable with theme
Resources.Theme theme = new ContextThemeWrapper(getContext(), category.getThemeId()).getTheme();
Drawable drawable = getResources().getDrawable(drawableResId, theme);
someImageView.setImageDrawable(drawable);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment