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 碼? #51

Open
z2228391 opened this issue May 23, 2018 · 1 comment
Open

有沒有人可以提供 Kotlin 碼? #51

z2228391 opened this issue May 23, 2018 · 1 comment

Comments

@z2228391
Copy link

WheelView wheelView = (WheelView) findViewById(R.id.wheelview);
wheelView.setWheelAdapter(new ArrayWheelAdapter(this)); // 文本数据源
wheelView.setSkin(WheelView.Skin.Common); // common皮肤
wheelView.setWheelData( ?); // 数据集合

@marco-magdy
Copy link

use this snippet, it works just fine with me

var wheelView= findViewById(R.id.wheel_view) as WheelView<String> with(weightWV) { setWheelAdapter(ArrayWheelAdapter(activity)) skin = WheelView.Skin.Holo setWheelData(getWheelList()) selection = getWheelList().size / 2 style = wvStyle }

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