Skip to content

Instantly share code, notes, and snippets.

@lethargicpanda
Created April 9, 2013 23:04
Show Gist options
  • Save lethargicpanda/5350170 to your computer and use it in GitHub Desktop.
Save lethargicpanda/5350170 to your computer and use it in GitHub Desktop.
Get the resource ID out of name_of_resource resource
int id = getResources().getIdentifier("name_of_resource", "id", getPackageName());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment