Created
March 9, 2015 21:36
-
-
Save johnybot/99b8aa00a0e725b2185c to your computer and use it in GitHub Desktop.
RippleResource
This file contains hidden or 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
int[] attrs = new int[]{R.attr.selectableItemBackground}; | |
TypedArray typedArray = getActivity().obtainStyledAttributes(attrs); | |
int backgroundResource = typedArray.getResourceId(0, 0); | |
view.setBackgroundResource(backgroundResource); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@johnybot Thanks for this nice example. @changetip $1