Skip to content

Instantly share code, notes, and snippets.

@tmaxxdd
Created June 12, 2019 11:23
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 tmaxxdd/54895cdde7b4c7a9fdb79440c81d7806 to your computer and use it in GitHub Desktop.
Save tmaxxdd/54895cdde7b4c7a9fdb79440c81d7806 to your computer and use it in GitHub Desktop.
class ExampleActivity extends Activity {
@BindView(R.id.user) EditText username;
@BindView(R.id.pass) EditText password;
@BindString(R.string.login_error) String loginErrorMessage;
@OnClick(R.id.submit) void submit() {
// TODO call server...
}
@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