maltaisn / recurpickerlib Goto Github PK
View Code? Open in Web Editor NEWRecurrence picker fragment and dialog for Android, with utilities for finding recurrence dates
License: Apache License 2.0
Recurrence picker fragment and dialog for Android, with utilities for finding recurrence dates
License: Apache License 2.0
Hi, I wanted to translate the library to Czech language (and others), but I face a few problems:
on every {0} {1}
. I don't see why not to use standard parameters like %s
. My translators are used to standard format and explaining them something else would be hard.translation_description
attribute instead of a comment. Tools for translators read it and display it automatically as a context.What do you think? If you solve this, I'm willing to translate it into Czech myself and then upload it to GetLocalization platform where users of my app (Settle Up) translate the app to 18 languages. When it's translated I can send PR for all translated languages.
I want to determine how many days are selected for weekly repetition.
e.g. Thu, Fri, Sun = 3 day
(How) is this possible?
I uploaded strings to GL and started translating. I found that there are many string where quantity "one" doesn't make sense with the number. "Every 1 day" can simply be "Every day". "Every 1 month", "Repeats every 1 year" etc. is the same. Numbers should be removed from these strings.
It's a consistent feature throughout all your libraries, the callback via setTargetFragment()
.
Why do you prefer this instead of passing a callback?
in https://github.com/maltaisn/recurpickerlib/wiki/Using-the-dialog-picker there is
onRecurrenceSelectedand and onCancelled
it should probably on current version be
// (it could mention in comments what works for old versions) onRecurrencePickerSelected and onRecurrencePickerCancelled
Hello.
Found an error in the computation of recurrences.
Starting date set to Fri Aug 02, 2019
Repeat every 5 weeks on sun, fri, sat with no end date.
Results:
Expected result:
Does anyone have a quick fix?
Currently on small screens or low resolution setting, the day selection buttons rollover and overlap each other
please check the screenshot to understand better
To replicate the issue , please try the following steps
reproduce : yes
frequency : 5 of 5 (100%)
*attached screenshot is from a P4XL device with the display size set to largest
the callbacks are not being called.
@Override
public void onRecurrencePickerSelected(Recurrence r) {
Toast.makeText(activity, "working", Toast.LENGTH_SHORT).show();
}
@Override
public void onRecurrencePickerCancelled(Recurrence r) {
Toast.makeText(activity, "dismissed", Toast.LENGTH_SHORT).show();
}
I have set RecurrencePickerSettings to only include DOES_NOT_REPEAT, DAILY, WEEKLY, and null (for custom). When a user selects a Custom they can still choose from the dropdown a list that includes Monthly and Yearly.
Is there a way to ensure the settings are enforced in the Custom dialog view?
In https://github.com/maltaisn/recurpickerlib/wiki/Creating-or-editing-a-recurrence
new Recurrence(byte[] array, int index)
is mention.
It is not avaliable in current lib version.
Clear way for converting from byte[] array to Recurrence should be indicated, as this is recommended way to store recurrence. Please provide reliable way to obtain recurrence from byte[] or other storing mechanism.
Hi,
I see this crash in Crashlytics:
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at com.maltaisn.recurpicker.RecurrencePickerView$10.afterTextChanged(RecurrencePickerView.java:498) at android.widget.TextView.sendAfterTextChanged(TextView.java:9375) at android.widget.TextView.setText(TextView.java:5401) at android.widget.TextView.setText(TextView.java:5248) at android.widget.EditText.setText(EditText.java:113) at android.widget.TextView.setText(TextView.java:5205) at com.maltaisn.recurpicker.RecurrencePickerView.changeMode(RecurrencePickerView.java:639) at com.maltaisn.recurpicker.RecurrencePickerView$2.onClick(RecurrencePickerView.java:291) at android.view.View.performClick(View.java:6256) at android.view.View$PerformClick.run(View.java:24701) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:251) at android.app.ActivityThread.main(ActivityThread.java:6572) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Not sure what the user was doing, he had Android 8
RecurrencePickerDialog
currently doesn't work in API 15 (and most likely 14 too) due to layout inflation error caused by Flow
. An issue was opened on the Google issue tracker and this should be fixed when the next version of ConstraintLayout comes out.
Hello,
Since we have already discuss nearly the same issue on your other project icondialog that I am living same situation on your recurpicker lib also.
old issue --> maltaisn/icondialoglib#35
To make a test I have created 2 project on my pc one with kotlin the other one with java. So basically I wanted to run the demo on both project which has been mentioned here --> https://github.com/maltaisn/recurpickerlib/wiki/Using-the-library
My observation is;
When I use your library with the kotlin based created project everything is okey. Without problem I was able to run the demo.
But when I use the library on the java project, Project has been frozen and I was not able to run even auto complete code and not able index the code. (Ctrl+click on the object will not refer to real place or class.) Even when I have done invalidate cache and restart it will work on first time then when I import sth related the libarary or call the some variable which has been related your library I got the problem permanently.
So i thought maybe it can be help you to improve your library if some more people which has been faced the same issue like me. Maybe it is a problem for jetbrains or sth wrong on my PC(I have remove the android studio and re installed and currently version 4.0, so that is why I would not say a problem on my pc since your library worked with newly created kotlin project without problem.
). And also I am only doing some stuff as hobby on the android and I am not professional developer for android.
That is why I ve uploaded the 2 project as zip on the PR. You can have a look.
And I hope helps to you :)
Android Studio 4.0
Build #AI-193.6911.18.40.6514223, built on May 20, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1237M
Cores: 8
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: com.google.services.firebase, org.intellij.plugins.markdown
The library should be compatible with themes of the new MDC library.
Furthermore it looks like the cancel button is not aligned correctly.
It would also be nice if the circular select buttons for the week days would feature a ripple effect.
e.g. with this custom class: https://github.com/guger/Libraries/blob/master/circularimagebutton/src/main/java/at/guger/circularimagebutton/CircularImageButton.kt
End date dialog closes on configuration change and selected date is lost. Not a big issue but good to know.
When using a recurrence (e.g. daily), and choosing the 'until' option, the datepicker shows the current day (30.5.19), the textview shows two days ahead (2.6.19).
Another recurrence picker had a feature request that asked to be able to choose available options ex:
Why does recurrence.findRecurrences(1558821600001, 1)
return 1558821600000
?
Since the date formatter is required, what about either making it a constructor parameter, or throwing an IllegalStateException "Date Format must be set before calling show."
when those parameters are not set before calling show
.
Would it be possible to implement a method which computes all recurrences within two dates?
What would be the best way to change the entering and exit animation for recurrence picker dialogs?
Currently https://github.com/maltaisn/recurpickerlib/wiki/Using-the-recurrence-object states that new Recurrence(byte[] array, int index)
index: index at which the recurrence starts in the byte array.
To me setting it to 0 work as expected. I do not understand when on why would it ever change.
Simply use it with index 0 seem work.
So I guess mentioning default value 0 would be enough.
This great library can support from 19?
Is there a possibility you would ever support extracting the Recurrence object and its Serialization capability out to its own library. I have a tool that is using your (fantastic) recurpickerlib in Android. But would like to be able to generate Recurrence objects that are compatible from a standard Java application.
Another recurrence picker had a feature request that was to be able to customize strings ex:
Recurrence.format
and day of week buttonsI cannot resolve v1.6.0 via gradle, and it looks like you forgot to push it to maven central or jcenter?
Hi, Can anyone please guide me on how I can set recurrence of an event at a specific date of the month. Currently, if I select Period type "Month" it only shows two options recurrence on the same date of the month or the same day of the month.
I am using a weekly Recurrence and the default 'presets' for the RecurrencePickerSettings creates the default set. If a user selects 'Every week' the resulting Recurrence returned in onRecurrencePresetSelected() override has a toString() that looks like the following:
Recurrence{ Every week o }
If I then attempt to use RRuleFormatter.format() on that Recurrence during the loop on checking 'isRecurringOnDaysOfWeek' none are found. This also occurs in Recurrence class during it's toSting() (which is why the Recurrence to String looks like that). Then the StringBuilder removes the last two characters. In both cases this is not a valid RFC2445 or RFC5445 string.
If looks like the default Builder for Recurrence sets byDay = 1. Which is causing the problem if nothing else sets the byDay and since the preset doesn't it seems like byDay is becoming one and failing the isRecurringOnDaysOfWeek.
Am I doing something wrong here?
Hello,
I was wondering if you had any plan to support the Period values for Hours, Minutes, and Seconds? This would make the recurrence closer to the RFC spec.
If not, no worries, please feel free to close this issue. Just wanted to check mostly
Hello. When I select REPEAT OPTION: "Custom..." -> REPEAT MONTHLY, I see two option: "on the same day each month" and "on every forth Tuesday". How I can to remove or change these options?
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.