Code Monkey home page Code Monkey logo

casualitimepicker's Introduction

CasualiTimePicker v1.0.0

完全使用NumberPicker实现的时间选择器。

-- CasualiTimePicker是对 iTimePicker 的封装,CasualiTimePicker增加了模式的切换。

-- iTimePickers使用了多个NumberPicker组成 ,并管理数据的联动,显示和设置时间。

界面

CasualiTimePicker使用

添加依赖

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

	dependencies {
	        implementation 'com.github.0x7A7A6572:CustomImageView:Tag'
	}

布局文件中添加:

        <cn.zzerx.itimepicker.CasualiTimePicker
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

部分api CasualiTimePicker --|

setTimeSelectMode 设置显示模式

getPickerParent 获取iTimePicker

setOnValueChangesListener 监听模式改变

iTimePicker --|

getTimePicker 获取当前显示的时间

setTimePicker 设置时间

下载Demo

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.