Code Monkey home page Code Monkey logo

android-pickerview-timepart's Introduction

Android-PickerView

注意事项、详请使用方式、更新日志等,请查看 Wiki文档

Wiki文档,Wiki文档,Wiki文档 !~ 重要的事情说三遍

有兴趣研究3D滚轮效果的实现机制,希望把源码研究透彻的可以看看这篇博客:

参考Android-PickerView时间选择器添加时间段,使用方式建议将pickerview作为moudle注入项目使用。 具体使用可参考Wiki文档。区别在于时间选择器初始化时需传入7个Boolean值, setType(new boolean[]{true, true, true, false, false, false, true}),同时选择回调添加时间段item position回调 onTimeSelect(Date date, int part, View v) //选中事件回调。 根据position与时间段数组判断处于哪个时间段。

时间段定义在pickerview/res/attrs.xml中,可更换时间段。

Thanks

License

Copyright 2014 Bigkoo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

android-pickerview-timepart's People

Contributors

cbxboy avatar

Stargazers

 avatar

Watchers

 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.