k0shk0sh / Retaineddatetimepickers
Licence: apache-2.0
Android Library to help you with your date & time pickers while retaining the instance of the pickers on orientation change.
Stars: ✭ 107
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Retaineddatetimepickers
React Native Bubble Select
An easy-to-use customizable bubble animation picker, similar to the Apple Music genre selection
Stars: ✭ 78 (-27.1%)
Mutual labels: picker
Materialdaterangepicker
A material Date Range Picker based on wdullaers MaterialDateTimePicker
Stars: ✭ 1,315 (+1128.97%)
Mutual labels: picker
Magnetic
SpriteKit Floating Bubble Picker (inspired by Apple Music) 🧲
Stars: ✭ 1,252 (+1070.09%)
Mutual labels: picker
Angular Bootstrap Datetimepicker
Native Angular date/time picker component styled by Twitter Bootstrap
Stars: ✭ 1,289 (+1104.67%)
Mutual labels: picker
Multitype Filepicker
This is a light Android file picker library.
Stars: ✭ 1,332 (+1144.86%)
Mutual labels: picker
Circularpicker
CircularPicker is helpful for creating a controller aimed to manage any calculated parameter.
Stars: ✭ 73 (-31.78%)
Mutual labels: picker
Datepicker
A Date Picker with Calendar for iPhone and iPad Apps.
Stars: ✭ 103 (-3.74%)
Mutual labels: picker
Bubble Picker
An easy-to-use animation which can be used for content picking for Android
Stars: ✭ 1,316 (+1129.91%)
Mutual labels: picker
Flutter wechat camera picker
A camera picker in WeChat style.
Stars: ✭ 95 (-11.21%)
Mutual labels: picker
Tcpickerview
Picker view popup with multiply rows selection written in Swift
Stars: ✭ 84 (-21.5%)
Mutual labels: picker
React Native Picker Select
🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
Stars: ✭ 1,229 (+1048.6%)
Mutual labels: picker
Dkimagepickercontroller
Image Picker Controller for iOS written in Swift 4 & 5.
Stars: ✭ 1,369 (+1179.44%)
Mutual labels: picker
Material Ui Color Picker
<ColorInput> component for material-ui
Stars: ✭ 74 (-30.84%)
Mutual labels: picker
Pd Select
vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Stars: ✭ 101 (-5.61%)
Mutual labels: picker
Bootstrap Popover Picker
Generic Bootstrap plugin template for building selector components with popovers.
Stars: ✭ 95 (-11.21%)
Mutual labels: picker
RetainedDateTimePickers
Android Library to help you with your date & time pickers while retaining the instance of the pickers on orientation change.
Installation
Gradle
compile 'com.github.k0shk0sh:RetainedDateTimePickers:1.0.2'
Maven
<dependency>
<groupId>com.github.k0shk0sh</groupId>
<artifactId>RetainedDateTimePickers</artifactId>
<version>1.0.2</version>
<type>aar</type>
</dependency>
Usage
Your Activity
or Fragment
must implement DatePickerCallback
and or TimePickerCallback
to receive the selected date & selected time if
applicable.
RetainedDateTimePickers should be treated as any normal DialogFragment
:
- DatePickerDialog Only
DatePickerFragmentDialog.newInstance().show(getSupportFragmentManager(), "DatePickerFragmentDialog");
- TimePickerDialog Only
//default 12 hours format
TimePickerFragmentDialog.newInstance().show(getSupportFragmentManager(), "TimePickerFragmentDialog");
//24 hours format
TimePickerFragmentDialog.newInstance(true).show(getSupportFragmentManager(), "TimePickerFragmentDialog");
- DateTimePickerDialog
DatePickerFragmentDialog.newInstance(true).show(getSupportFragmentManager(), "DatePickerFragmentDialog");
- Date & Time PickerDialog Customization
DatePickerFragmentDialog.newInstance(
DateTimeBuilder.get()
.withTime(true)
.with24Hours(true)
.withSelectedDate(currentDate.getTimeInMillis())
.withMinDate(minDate.getTimeInMillis())
.withMaxDate(maxDate.getTimeInMillis())
.withCurrentHour(12)
.withCurrentMinute(30)
.withTheme(R.style.PickersTheme))
.show(getSupportFragmentManager(), "DatePickerFragmentDialog");
To understand more how the library works, please take a look at the sample app.
Screenshots
- Pickers Portrait Mode
- **Pickers Landscape Mode**
- **Pickers Custom Themes via Styles**
Why this library?
- DatePickerDialog & TimePickerDialog are not retained on orientation change, you'd do a lot of work to retain them, this library simplify that.
- It uses DatePickerDialog & TimePickerDialog internally.
- Its simple to use.
- Its Customizable (Support Custom Themes).
- Minimum API is 16, but it'll probably work in API 9 and above, just make sure you test it out (we use
Support Fragment
).
Dependency
Android Support Fragment Library v24.2.1
Pull requests are welcomed.
Copyright Notice
Copyright (C) 2016 Kosh. Licensed under the Apache 2.0 license (see the LICENSE file).
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].