WheelPicker
iOS-style scroll wheel picker
Read this in other languages: 简体中文
Feature
Day
/Night
Mode Support- Customizable style
- Support circular scrolling
- Support vibration feedback
Preview
Day | Night |
---|---|
Component
-
DatePicker
year-month-day
oryear-month
pickersupport
max
andmin
date limits -
WeekdayTimePicker
weekday-hour-minute
picker -
DayTimePicker
day-hour-minute
picker
Download
Download the latest AAR from Maven Central via Gradle:
implementation 'sh.tyy:wheelpicker:0.2.1'
Custom
Customize the style of the item in the same way as the RecyclerView
. You need to provide a BaseWheelPickerView.Adapter
and a BaseWheelPickerView.ViewHolder
.
Special note: the itemView of the ViewHolder needs to be a fixed height view.
After all,
WheelPicker
is based onRecyclerView
. Doing so will ensure as much performance and reliability as possible.
Custom WheelPicker please refer to CustomWheelPickerView.kt
This is what the custom example looks like:
For more complex customizations (e.g. multiple columns), please refer to WeekdayTimePickerView
Inspiration and Reference
WheelPicker is inspired by devilist/RecyclerWheelPicker.
License
WheelPicker is available under the Apache 2.0 license. See the LICENSE file for more info.