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

能否设置以5分钟为间隔? #16

Open
yufns opened this issue Aug 4, 2016 · 4 comments
Open

能否设置以5分钟为间隔? #16

yufns opened this issue Aug 4, 2016 · 4 comments

Comments

@yufns
Copy link

yufns commented Aug 4, 2016

No description provided.

@codingpp
Copy link

我也遇到了同样的需求,求解决方法。

@leeyc09
Copy link

leeyc09 commented Jan 17, 2017

I was pull request that issue.

@zhuangxuenan
Copy link

我找到了解决办法
自定义一个MiniteWheelAdapter extends AbstractWheelTextAdapter
重写
@OverRide
public CharSequence getItemText(int index) {
/* if (index >= 0 && index < getItemsCount()) {
String strMin;
int value = (minValue + index30)%60;//int value = (minValue + index15)%60;
if(value ==0){
strMin = "00";
}else{
strMin = String.valueOf(value);
}
return strMin;
}
return null;*/
String strMin="";
if(index%2==0){
strMin = "00";
}else{
strMin = "30";
}
return strMin;
}

@neimengwuyanzu
Copy link

https://www.jianshu.com/p/dc95ed9808d5 简书上有一个大佬也有这个要求

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

5 participants