iOS-style scroll wheel picker
Read this in other languages: 简体中文
Day/NightMode Support- Customizable style
- Support circular scrolling
- Support vibration feedback
-
DatePicker
year-month-dayoryear-monthpickersupport
maxandmindate limitsDay Night -
WeekdayTimePicker
weekday-hour-minutepickerDay Night -
DayTimePicker
day-hour-minutepicker
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,
WheelPickeris 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.