Skip to content

Instantly share code, notes, and snippets.

@pavan5208
Created February 28, 2021 01:53
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 pavan5208/7e7f8c47617726d545ca75cd715dcc3e to your computer and use it in GitHub Desktop.
Save pavan5208/7e7f8c47617726d545ca75cd715dcc3e 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.example_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