Created
April 16, 2016 02:06
-
-
Save iZiMO/444babb2e27cd85bb0acb983a09e86ee to your computer and use it in GitHub Desktop.
Load drawable with theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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