Skip to content
New issue

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

请问这个类库的setOnClickListener方法能否用butterknife注解? #1

Open
magic0908 opened this issue Aug 2, 2017 · 0 comments

Comments

@magic0908
Copy link

我觉得这个类库挺好的,不过就是有个问题,就是在控件使用的时候每次都得这么写
fastButton.setOnClickListener(new OnClickFastListener() {
@OverRide
public void onFastClick(View v) {
Toast.makeText(mContext, "您点击了测试网络按钮...", Toast.LENGTH_LONG).show();
}
});
这样代码确实会重复很多啊,butterknife的话直接@OnClick( id )就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant