Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.