Giter Club home page Giter Club logo

customdatepicker's Introduction

CustomDatePicker

Android 自定义日期选择控件

详细说明参考 Android 好看的自定义滚动式日期选择控件

 

==================== 分割线 【更新日期:2018/12/21】 ====================

收到不少反馈项目中存在的问题,项目是初学 Android 时写的,一直没优化,最近花时间优化了下。由于代码中问题较多,所以本次更新直接对整个项目进行了重构,代码变动较大,主要有以下修改:

  1. 重构项目,重命名变量和方法,优化代码结构(会导致与原先版本接口或方法名对应不上,需要调整接入);

  2. 优化内存泄漏;

  3. 解决收到反馈的 bug,如月份+1问题等;

  4. 解决联动时下一级单位归零问题,比如滚动月,选中的日不变化。当溢出可选范围时,自动选中较近的值,如12月31日滚动到11月时变为11月30日;

  5. 解决刷新频繁问题,增加定制滚动动画的展示;

  6. 因日期字符串格式太固定,新增对时间戳的调用支持;

Ps:我看很多人反馈时间范围的问题,这里特地说明一下,展示的时间范围是由传入参数决定的,注意 CustomDatePicker 的最后两个参数,决定了日期选择的范围。

由于结构变动较大,所以新建了分支:update_20181221

 
效果图:

    

customdatepicker's People

Contributors

liuwan1992 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.