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下使用的一个问题 #359

Open
SerBad opened this issue Nov 6, 2019 · 5 comments
Open

在kotlin下使用的一个问题 #359

SerBad opened this issue Nov 6, 2019 · 5 comments

Comments

@SerBad
Copy link

SerBad commented Nov 6, 2019

public class ConvenientBanner<T> 

可以去掉这个地方的范型吗?我看了一下代码,你好像只有在mDatas中使用了。

在kotlin使用中,如果是直接在xml中设置了ConvenientBanner,这个地方是Nothing类型的,在代码中设置setPages的datas时,就无法指定其他的范型类型了。会不太方便。

就只有这样才可以使用的。

 private val bannerList  = arrayListOf<Nothing>()
@LollipopChen
Copy link

public class ConvenientBanner extends RelativeLayout 这个在kotlin中用起来不方便

@SerBad
Copy link
Author

SerBad commented Nov 18, 2019

#361

@SerBad
Copy link
Author

SerBad commented Nov 18, 2019

@saiwu-bigkoo

@zhukai78
Copy link

+1

@Punishing
Copy link

你可以自己写一个类继承他ConvenientBanner就行了

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

4 participants