Skip to content

Instantly share code, notes, and snippets.

@pcqpcq
Created April 2, 2015 10:33
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 pcqpcq/cf64984d67b4c2c86d40 to your computer and use it in GitHub Desktop.
Save pcqpcq/cf64984d67b4c2c86d40 to your computer and use it in GitHub Desktop.
Reduce findViewById
/**
* @param resId resource Id
*/
public <T extends View> T findView(int resId) {
return (T) findViewById(resId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment