All Projects → crazysunj → Android Pickerdialog

crazysunj / Android Pickerdialog

Licence: apache-2.0
一个兼容手机和电视(焦点选择)的高仿IOS风格的选择器

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Android Pickerdialog

Tinydate
A tiny (349B) reusable date formatter. Extremely fast!
Stars: ✭ 990 (+1275%)
Mutual labels:  date
Intl Date Time
International DateTime for Laravel Nova
Stars: ✭ 50 (-30.56%)
Mutual labels:  date
Amazon Alexa Lg Tv
Control your LG TV (webOS 3) with Amazon Alexa
Stars: ✭ 68 (-5.56%)
Mutual labels:  tv
Taketv
TakeTV permite descubrir dispositivos de red DLNA/UPnP y ayuda a reproducir archivos multimedia en los televisores inteligentes desde nuestra terminal en Linux.
Stars: ✭ 41 (-43.06%)
Mutual labels:  tv
Addic7ed Ruby
Ruby script to fetch subtitles on Addic7ed (auto-downloader)
Stars: ✭ 43 (-40.28%)
Mutual labels:  tv
Pgo
Go library for PHP community with convenient functions
Stars: ✭ 51 (-29.17%)
Mutual labels:  date
React Picky Date Time
A react component for date time picker. Online demo examples
Stars: ✭ 31 (-56.94%)
Mutual labels:  date
Iso8601
Ruby parser to work with ISO8601 dateTimes and durations — http://en.wikipedia.org/wiki/ISO_8601
Stars: ✭ 70 (-2.78%)
Mutual labels:  date
Persianrangedatepicker
Persian range date picker for android.
Stars: ✭ 48 (-33.33%)
Mutual labels:  date
When
A natural language date/time parser with pluggable rules
Stars: ✭ 1,113 (+1445.83%)
Mutual labels:  date
Period
Complex period comparisons
Stars: ✭ 1,001 (+1290.28%)
Mutual labels:  date
Torrenter
Simple nodejs package to download torrents using torrent-indexer and webtorrent, especially movie and series.
Stars: ✭ 42 (-41.67%)
Mutual labels:  tv
Zulu
A drop-in replacement for native Python datetimes that embraces UTC.
Stars: ✭ 52 (-27.78%)
Mutual labels:  date
Mnth
📆 Calendar month as 2d array of Dates
Stars: ✭ 41 (-43.06%)
Mutual labels:  date
Xfce4 Genmon Scripts
🐭 XFCE panel generic monitor scripts
Stars: ✭ 69 (-4.17%)
Mutual labels:  date
Date2name
Handling time-stamps and date-stamps in file names
Stars: ✭ 37 (-48.61%)
Mutual labels:  date
Antenna
Antenna is a live TV app for Apple TV (tvOS) powered by USTVnow.
Stars: ✭ 50 (-30.56%)
Mutual labels:  tv
Dategrid
A customizable swiftui calendar
Stars: ✭ 71 (-1.39%)
Mutual labels:  date
Robotv
Android TV frontend for VDR
Stars: ✭ 69 (-4.17%)
Mutual labels:  tv
Laydate
layDate(日期与时间组件) 是 layui 独立维护的三大组件之一
Stars: ✭ 1,066 (+1380.56%)
Mutual labels:  date

Android-PickerDialog

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

Gradle依赖

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

效果图

  • 手机日期

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

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

  • 电视选项

属性

//位置,支持左中右
 <attr name="pickerdialog_gravity">
    <enum name="center" value="17" />
    <enum name="left" value="3" />
    <enum name="right" value="5" />
</attr>

//字体大小
<attr name="pickerdialog_textSize" format="dimension" />

//上下字体颜色
<attr name="pickerdialog_textColorOut" format="color" />

//中间字体颜色
<attr name="pickerdialog_textColorCenter" format="color" />


//聚焦字体颜色,用于聚焦类APP
<attr name="pickerdialog_highLight_textColorCenter" format="color" />

//分割线颜色
<attr name="pickerdialog_dividerColor" format="color" />

//是否用于聚焦
<attr name="pickerdialog_isRequestFocus" format="boolean" />

//是否循环
<attr name="pickerdialog_isCyclic" format="boolean" />

//单位
<attr name="pickerdialog_lable" format="string" />

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

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

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

条件命名为options1,options2,options3

id是通过resources.getIdentifier找到的。

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

传送门

博客地址:http://crazysunj.com/

参考:Android-PickerView

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].