iOS-style scroll wheel picker
Read this in other languages: 简体中文
Day
/Night
Mode Support- Customizable style
- Support circular scrolling
- Support vibration feedback
-
DatePicker
year-month-day
oryear-month
pickersupport
max
andmin
date limitsDay Night -
WeekdayTimePicker
weekday-hour-minute
pickerDay Night -
DayTimePicker
day-hour-minute
picker
Download the latest AAR from Maven Central via Gradle:
implementation 'sh.tyy:wheelpicker:0.4.0'
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
WheelPicker is inspired by devilist/RecyclerWheelPicker.
WheelPicker is available under the Apache 2.0 license. See the LICENSE file for more info.