Skip to content

Instantly share code, notes, and snippets.

@johnybot
Created March 9, 2015 21:36
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 johnybot/99b8aa00a0e725b2185c to your computer and use it in GitHub Desktop.
Save johnybot/99b8aa00a0e725b2185c to your computer and use it in GitHub Desktop.
RippleResource
int[] attrs = new int[]{R.attr.selectableItemBackground};
TypedArray typedArray = getActivity().obtainStyledAttributes(attrs);
int backgroundResource = typedArray.getResourceId(0, 0);
view.setBackgroundResource(backgroundResource);
@IgorGanapolsky
Copy link

@johnybot Thanks for this nice example. @changetip $1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment