B4A Library [B4X] [XUI] AS DatePickerTimeline

pliroforikos

Active Member
Licensed User
Hello, i wonder if is it possible to show only Months name to choose only month.
Thank you
 

pliroforikos

Active Member
Licensed User
This makes absolutely no sense.
If you want to select only one month, then use a spinner where the months are listed.
I don't understand why. Sometimes you need to select only a month of a year or previous year or next year and so on. Or a range of months.
Maybe you mean this is not the purpose of this view...
 

Alexander Stolte

Expert
Licensed User
Longtime User
Maybe you mean this is not the purpose of this view...
Exactly.
Sometimes you need to select only a month of a year or previous year or next year and so on.
But not with a DatePickerTimeline, there are much more effective ways to do that.

Use
Together with
And
 

BugNot

Member
Hi,

Possible to add ListMode to paging or list in programming?

And why Scroll2Date crash my app in list mode, not in paging?

thanks
 

fbritop

Active Member
Licensed User
Longtime User
Does Scroll2Date works in List Mode?
It throught an error with:


B4X:
Error occurred on line: 444 (AS_DatePickerTimeline)
java.lang.RuntimeException: Class instance was not initialized (asviewpager)
 

Daica

Active Member
Licensed User
Would it be possible to add the year onto the view? Either before or after the month name?
 

pliroforikos

Active Member
Licensed User
Hi, just updated from 1.12 to 1.14 and it shows in logs:


Now rolled back in 1.12 and it works without problem
Just wanted to mention it.

Rgrds
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 1.15
    • ListMode List
      • Completely rewritten logic
      • Each day now has its own slot, instead of always adding 1 week to the list
      • MinDate and MaxDate can now be used in a more targeted manner
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 1.16
    • Add Designer Property CreateMode - If you set it to Manual then you need to call CreateDatePicker
CreateMode
Use case:
The DatePicker is built as soon as you load the layout. If you then set e.g. a MinDate and or MaxDate, then you must call the rebuild function, because the list must be completely emptied and then filled again. The problem is that there is a visible flickering. And to avoid this, you can now prevent the 1st build after the layout load and let the whole build only when you have made your settings.

Example:
B4X:
AS_DatePickerTimeline1.MaxDate = DateTime.Now
AS_DatePickerTimeline1.CreateDatePicker
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…