Skip to content

Instantly share code, notes, and snippets.

@lucas-marciano
Created July 7, 2017 11:47
Show Gist options
  • Select an option

  • Save lucas-marciano/fd5fa857e7c0479b1bb09c15fcab7e84 to your computer and use it in GitHub Desktop.

Select an option

Save lucas-marciano/fd5fa857e7c0479b1bb09c15fcab7e84 to your computer and use it in GitHub Desktop.
class ExampleActivity extends Activity {
@BindView(R.id.title) TextView title;
@BindView(R.id.subtitle) TextView subtitle;
@BindView(R.id.footer) TextView footer;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.simple_activity);
ButterKnife.bind(this);
// TODO Use fields...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment