我也遇到了同样的需求,求解决方法。
I was pull request that issue.
我找到了解决办法 自定义一个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; }
https://www.jianshu.com/p/dc95ed9808d5 简书上有一个大佬也有这个要求
Activity
codingpp commentedon Aug 15, 2016
我也遇到了同样的需求,求解决方法。
leeyc09 commentedon Jan 17, 2017
I was pull request that issue.
zhuangxuenan commentedon Oct 16, 2017
我找到了解决办法
自定义一个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 commentedon May 14, 2018
https://www.jianshu.com/p/dc95ed9808d5 简书上有一个大佬也有这个要求