Skip to content

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

Open

Description

@yufns
No description provided.

Activity

  1. codingpp commented on Aug 15, 2016

    @codingpp

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

  2. leeyc09 commented on Jan 17, 2017

    @leeyc09

    I was pull request that issue.

  3. zhuangxuenan commented on Oct 16, 2017

    @zhuangxuenan

    我找到了解决办法
    自定义一个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;
    }

  4. neimengwuyanzu commented on May 14, 2018

    @neimengwuyanzu

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions