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

希望能够支持kotlin #8

Open
appdev opened this issue Oct 31, 2017 · 3 comments
Open

希望能够支持kotlin #8

appdev opened this issue Oct 31, 2017 · 3 comments

Comments

@appdev
Copy link

appdev commented Oct 31, 2017

目前只能在java代码中使用,希望能够支持kotlin,创建viewhodler的时候自动继承RecyclerView.ViewHolder

@wangzailfm
Copy link
Owner

1 .创建viewhodler的时候自动继承RecyclerView.ViewHolder,这个在下个版本会加上。
2. 支持kotlin的话,其实kotlin基本不会用FindViewById,直接用id作为变量即可,也可以考虑在后面加上这个功能。

@appdev
Copy link
Author

appdev commented Oct 31, 2017

在kotlin的viewhodler中还是比较实用的。或者在viewhodler中kotlin有更高级的写法?

@wangzailfm
Copy link
Owner

kotlin中的viewholder也是直接用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

2 participants