android 选择器 选择和焦点,GitHub - sirhu11/Android-PickerDialog: 一个兼容手机和电视(焦点选择)的高仿IOS风格的选择器...

Android-PickerDialog

这是一个兼容手机和电视(焦点选择)的高仿IOS风格的选择器。

Gradle依赖

compile 'com.crazysunj:android-pickerdialog:1.1.0'

效果图

手机日期

c26a4c23719dc07fbe82a7f16cc78f09.png

手机选项(根据集合显示,这里以地址为例)

cdd91cb93cceabb1bca41f41ab83fc9c.png

电视日期(红色表示聚焦,颜色可修改)

ec1a7968b6b909477fdaee21ee0dab93.png

电视选项

aa6b6b533b0099ecf66f940853e627d2.png

属性

//位置,支持左中右

//字体大小

//上下字体颜色

//中间字体颜色

//聚焦字体颜色,用于聚焦类APP

//分割线颜色

//是否用于聚焦

//是否循环

//单位

初始化都以传bundle的形式传入,对话框都是继承于DialogFragment,方便管理。

如果是继承于BaseOptionsPickerDialog或者BaseDatePickerDialog,实现getResLayoutId的时候注意id的命名。

时间命名为year,month,day,hour,min

条件命名为options1,options2,options3

id是通过resources.getIdentifier找到的。

简单修改样式可继承已有对话框修改。

传送门

License

Copyright 2016 Sun Jian

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值