We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
ここでidを書いてしまっては、最初で@InjectViewする意味がない気がする
この方法はどうでしょう? この方法であればidが必要なのはinject時だけです
@InjectView(R.id.view1) View view1; @InjectView(R.id.view2) View view2; @Override protected void onCreate(Bundle savedInstanceState) { .... ButterKnife.inject(this); view1.setOnClickListener(new View.OnClickListener() { // view1のクリック処理 }); view2.setOnClickListener(new View.OnClickListener() { // view2のクリック処理 }); .... }
個人的にはButterKnifeの@OnClick等のViewイベント系のアノテーションは使いません。
理由は二点あります
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: