Skip to content

Instantly share code, notes, and snippets.

@julianfalcionelli
Created October 24, 2016 19:59
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 julianfalcionelli/4fde5b6ca7cf31a8ef76872ac77eff37 to your computer and use it in GitHub Desktop.
Save julianfalcionelli/4fde5b6ca7cf31a8ef76872ac77eff37 to your computer and use it in GitHub Desktop.
ButterKnife example
class ExampleActivity extends Activity {
@BindView(R.id.title) TextView mTitleTextView;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.example_activity);
ButterKnife.bind(this);
mTitleTextView.setText("Hello World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment