akexorcist / snaptimepicker Goto Github PK
View Code? Open in Web Editor NEW[Android] Another Material Time Picker
License: Apache License 2.0
[Android] Another Material Time Picker
License: Apache License 2.0
Hi
I am using time range picker and set a time interval of 5 minutes to show time every 5 minutes so 1:00,1:05,1:10 etc
But this does not work like this.Is it supported in this library or not?
Hi thanks for your library, I'm using it on Java. If I open the dialog, set the time and reopen it I get:
java.lang.IllegalStateException: An instance of OnFlingListener already set.
at androidx.recyclerview.widget.SnapHelper.setupCallbacks(SnapHelper.java:113)
at androidx.recyclerview.widget.SnapHelper.attachToRecyclerView(SnapHelper.java:101)
at com.akexorcist.snaptimepicker.SnapTimePickerDialog.prepare(SnapTimePickerDialog.kt:104)
at com.akexorcist.snaptimepicker.BaseSnapTimePickerDialogFragment.onActivityCreated(BaseSnapTimePickerDialogFragment.kt:44)
at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:2461)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:908)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1229)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1295)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:686)
at androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2057)
at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1847)
at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1802)
at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1709)
at androidx.fragment.app.FragmentManagerImpl$1.run(FragmentManagerImpl.java:147)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7397)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
Here my use case (inside a fragment)
SnapTimePickerDialog picker = new SnapTimePickerDialog.Builder()
.setPreselectedTime(new TimeValue(calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE)))
.build();
picker.setListener((hourOfDay, minute) -> {
[...]
}
picker.show(getFragmentManager(), TAG);
Any help would be appreciated. Please ask me if additional info are needed. Thanks again.
Hi, i'm getting this error after implementing onTimePicked
listener
error: cannot access Function2 class file for kotlin.jvm.functions.Function2 not found
Iam working in project by java i can't use this library
Is there any way to set minute section like this:
00
15
30
45
can you please help i need to add 12 hour format AM/PM
I want to use it with Java.
Can I use this on Android JAVA? If so how?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.