[B4X] [XUI] [Old] AS CalendarAdvanced 📅 - OneRow/FiveRow Calendar - Expand and Collapse [Payware]

Colin Evans

Active Member
Licensed User
Longtime User
is there a way to try this lib out?
i need a calendar that is fixed not a dialog.

thanx
Don't know if my project is of use
 

ilan

Expert
Licensed User
Longtime User
Don't know if my project is of use
looks really nice, thank you. i need it for b4j. actually i am working right now on my own version of calendar :)
 

Alexander Stolte

Expert
Licensed User
Longtime User
i need a calendar that is fixed not a dialog.
There ar a designer property thats important for you:
-Expandable = False
-Expanded = True
1656447335534.png

Result: Its not a dialog ;)
An alternative would be:
 

MarcoRome

Expert
Licensed User
Longtime User
RESOLVED:
if i add the code after CreateCalendar work.
but I don't understand how it worked until yesterday.

****

Hi All. Until now all work. Today is 1 July and when start app i have this error in this line

B4X:
    Dim p_1 As Period : p_1.Days = -15
    Dim p_2 As Period : p_2.Days = 15
    'Here Error
    ASCalendarAdvanced1.SetLimitRange(DateUtils.AddPeriod(DateTime.Now,p_1),DateUtils.AddPeriod(DateTime.Now,p_2))

if i comment ( ASCalendarAdvanced1.SetLimitRange ) all work

** Activity (act_info_stabilimento) Create, isFirst = true **
Error occurred on line: 369 (ASViewPager)
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.get(ArrayList.java:437)
at anywheresoftware.b4a.objects.collections.List.Get(List.java:117)
at b4a.example3.customlistview._getrawlistitem(customlistview.java:447)
at b4a.example3.customlistview._finditemoffset(customlistview.java:376)
at b4a.example3.customlistview._jumptoitem(customlistview.java:728)
at it.clickmare.app.asviewpager._addpageat(asviewpager.java:138)
at it.clickmare.app.ascalendaradvanced$ResumableSub_AddWeekPanel.resume(ascalendaradvanced.java:2343)
at it.clickmare.app.ascalendaradvanced._addweekpanel(ascalendaradvanced.java:2264)
at it.clickmare.app.ascalendaradvanced._xasvp_horizontal_pagechanged(ascalendaradvanced.java:4119)
at it.clickmare.app.ascalendaradvanced$ResumableSub_CreateCalendar.resume(ascalendaradvanced.java:765)
at it.clickmare.app.ascalendaradvanced._createcalendar(ascalendaradvanced.java:694)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at it.clickmare.app.act_info_stabilimento.afterFirstLayout(act_info_stabilimento.java:105)
at it.clickmare.app.act_info_stabilimento.access$000(act_info_stabilimento.java:17)
at it.clickmare.app.act_info_stabilimento$WaitForLayout.run(act_info_stabilimento.java:83)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
** Activity (act_info_stabilimento) Resume **
 

Attachments

  • ASCalendarAdvanced.zip
    18.3 KB · Views: 135
Last edited:

Alexander Stolte

Expert
Licensed User
Longtime User
if i add the code after CreateCalendar work.
but I don't understand how it worked until yesterday.
It tries to change the visible area, but this is not possible if this area is added after CreateCalender.

I had started 2 months ago to rewrite the complete view. But I am confident that I can do it this year, because I am not satisfied with the state of the view, because I can do it better in the meantime.
 

asales

Expert
Licensed User
Longtime User
I changed the first day of week to "Sunday", but still shows "Mon" in the name.
How to fix it?
Thanks in advance.
1658630329138.png
 

Alexander Stolte

Expert
Licensed User
Longtime User
I changed the first day of week to "Sunday", but still shows "Mon" in the name.
That's right, because it's not possible to do it automatically, or I'm too stupid to do it. You have to rename it manually.

How to fix it?
B4X:
ASCalendarAdvanced1.WeekNameShort = ASCalendarAdvanced1.CreateASCalendarAdvanced_WeekNameShort("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
 

BugNot

Member
Hello,

I am ready to make a donation for your library but first I wanted to know if it is possible to add images to the calendar?

Thank you.

calendar.jpg
 

Alexander Stolte

Expert
Licensed User
Longtime User
I am ready to make a donation for your library but first I wanted to know if it is possible to add images to the calendar?
No it's not possible with this view.


Use the AS_DatePicker with ShowGridlines = True and use the CustomDrawDay Event, to add your images on it. It's free and has more features, than this lib.
 

MarcoRome

Expert
Licensed User
Longtime User
Hi dear @Alexander Stolte
If you use it on a MAC pc you have the following effect. If you use it on a MAC pc you have the following effect due to the use of the TrackerMac (always present on portable Macs and in some cases also on desktop Mac)


As you can see if you look at January 15th which is a Sunday, moving it with the TrackerMac, you can stop the day in any "column", for example you can stop it on Saturday.. and at that point using the calendar becomes very confusing.
It is possible to enter the month and day under each day, such as:
15 Sun. January

Thank you for your answer
 

Alexander Stolte

Expert
Licensed User
Longtime User
pc you have the following effect
It's not a problem of the AS_CalendarAdvanced, it is a problem of the AS_ViewPager, if you use the B4J example project and change the orientation to vertical, then you can scroll through the list and it's not working like a viewpager anymore.

I'll have to see what can be done about it.
 

MarcoRome

Expert
Licensed User
Longtime User
Please test it with this AS_ViewPager version

Hi Alexander.
I tried the new library it actually works.
But it doesn't make you select the day anymore ( SelectedDateChanged(Date As Long) ).
If you try to point the mouse on the day and click it is no longer selected (this is for both windows and MAC)
 

MarcoRome

Expert
Licensed User
Longtime User
Hi Alexander.
I tried the new library it actually works.
But it doesn't make you select the day anymore ( SelectedDateChanged(Date As Long) ).
If you try to point the mouse on the day and click it is no longer selected (this is for both windows and MAC)
Also with example if you use new library ( as_view 3.06 ) dont work. You cant select day
 
Top