Hello Team, Here is my another tiny extension which deals with Calendar related works without using any lib or external API also it supports interanal storage just like tinydb to store your events and retrieves the saved events based on the date
After intialization or after NEXT/PRE button clicked or Left/Right Swipe detected , this event will trigger and shows list of all the event stored in teh visible month
This is how blocks need to be designed to Add event on the Long Clicked date can be used.
But to modify/Remove the event by index (if more events are stored on the same day) from a particular day user need to use listview click
Whenever events are stored then the particular will be differentiated into different colour.
You can further customonize the colour using simplefunction.
As you suggest here is the demo file to show how this extension can be used..
Added responsive layouts
User can change the height to have a better look.
To add the event user need to long press on any date.
To modify the event or delete the event stored on any date user need to click the day>> select the item from list picking
.
During initialization or prevMonth or nextMonth or prevYear or nextYear press user can see the whole month events as a list in the listview and do not allow the user to edit from there.
If any event is found then that particular date will have different colour and user need to click on that particular day to view the list of events, once the user clicked then edit or modify or delete will execute.
Also have added claer all events which will erase all the events stored at a time.
User can customonize the view by adjusting the parent arrangement width and height to their expectation also fontsize , text colour, bg colour, grid line width, gridlines colour can be changed as you like.
Overall this will be an effective dynamic calendar extension in your upcoming app.
Views are welcome.
Thanks to the community.
No libraries are used No permission is required No network access
This will give you total events on the specified number of days from teh current day
Most existing one event save the events by category, get the events by categopry and remove the events from category (No explanations are needed i think)
Very Most Existing event. saving the events daily/monthly/weekly/yearly also you can design by how many times it have to save and also its removal by a single click
Yep, I just thought I could understand better if I saw a video or some sort of walkthrough to get how this works. I'm a beginner at Kodular and still couldn't understand, but after looking through literally every single block and finally pressing on the screen item's block view stuff, I found what block triggers the calendar. Thanks for the help anyways, if you really can, try to make a quick video or some sort of walkthrough to do basic functions like changing the background color, its size or position on the screen and more.
(BTW, I still cant find "VerticalArrangement1" its like it is hidden away from me. I just wish there was a search bar to help me with this...)
Thank you for contributing such a valuable extension to the community. The DynamicCalendar Extension looks incredibly useful, especially for developers who want to manage calendar related tasks without depending on any external library or API.
The internal storage feature using TinyDB is a very smart approach for saving and retrieving events based on dates. This will definitely save a lot of development time for many developers.
I would like to ask a few questions regarding this extension:
Is this extension compatible with the latest Android versions?
Can multiple events be stored and retrieved for the same date?
Is there any limitation on the number of events that can be stored?
Can the calendar UI be customized according to app design requirements?
Once again thank you for sharing this wonderful extension for free. Your contribution is truly appreciated by the entire developer community. Looking forward to more such amazing extensions from you in the future.
Here events are stored just like tinydb using the tag as dates. If you store more and more events in the same day it will be stored as a list . so modification or deletion desperatly needs index.
So i have used remive event based on index as well as by category too. Which ine you want you can use it.
If i store 3 events on a particular day, you will see list of events. Now you want to remive the 2nd event but want to keep 1st and 2rd. So you will be using the functiin called temove event by index. Give date and index as 2. Now your new list will be modified.
Suppose if you want to temove all the 3 events then use remove event by date which will remove all the events stored in the day