Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
com.github.k0shk0sh:RetainedDateTimePickers
Advanced tools
Android Library to help you with your date & time pickers while retaining the instance of the pickers on orientation change.
Android Library to help you with your date & time pickers while retaining the instance of the pickers on orientation change.
compile 'com.github.k0shk0sh:RetainedDateTimePickers:1.0.2'
<dependency>
<groupId>com.github.k0shk0sh</groupId>
<artifactId>RetainedDateTimePickers</artifactId>
<version>1.0.2</version>
<type>aar</type>
</dependency>
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
:
DatePickerFragmentDialog.newInstance().show(getSupportFragmentManager(), "DatePickerFragmentDialog");
//default 12 hours format
TimePickerFragmentDialog.newInstance().show(getSupportFragmentManager(), "TimePickerFragmentDialog");
//24 hours format
TimePickerFragmentDialog.newInstance(true).show(getSupportFragmentManager(), "TimePickerFragmentDialog");
DatePickerFragmentDialog.newInstance(true).show(getSupportFragmentManager(), "DatePickerFragmentDialog");
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.
Support Fragment
).Android Support Fragment Library v24.2.1
Pull requests are welcomed.
Copyright (C) 2016 Kosh. Licensed under the Apache 2.0 license (see the LICENSE file).
FAQs
Android Library to help you with your date & time pickers while retaining the instance of the pickers on orientation change.
We found that com.github.k0shk0sh:RetainedDateTimePickers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.