[It's crossplatform, like the original, of course]
I needed a "date picker" that shows "full" days, days for which I have data in a DB.
So I modified the official B4XDateTemplate.
I'm still modifying it; when it will be "completed", I will publish it, also attaching an example with a very small test DB.
Note that a DB is not necessary, you just have to pass a list of Int, the days to highlight for the month and year shown.
I will calmly provide the possibility to switch between dark and light theme, although you can change all the colors you want.
One thing that I consider "important", even if what I needed was the highlighting of some days, is that I removed the 3 labels for the year selection that I replaced with a B4XPlusMinus.
It is very useful, because with the labels you need to do many clicks to change the year (I'm only thinking about it now: probably I could have implemented the long click on the two labels, + and -).
For now I have the problem that I could not make the B4XPlusMinus look the same as the original B4XDateTemplate, that is, like the one for the month selection.
You can choose whether to highlight the selected days with a circle or a rectangle.
You can also choose whether all days will be clickable or only the highlighted ones.
I needed a "date picker" that shows "full" days, days for which I have data in a DB.
So I modified the official B4XDateTemplate.
I'm still modifying it; when it will be "completed", I will publish it, also attaching an example with a very small test DB.
Note that a DB is not necessary, you just have to pass a list of Int, the days to highlight for the month and year shown.
I will calmly provide the possibility to switch between dark and light theme, although you can change all the colors you want.
One thing that I consider "important", even if what I needed was the highlighting of some days, is that I removed the 3 labels for the year selection that I replaced with a B4XPlusMinus.
It is very useful, because with the labels you need to do many clicks to change the year (I'm only thinking about it now: probably I could have implemented the long click on the two labels, + and -).
For now I have the problem that I could not make the B4XPlusMinus look the same as the original B4XDateTemplate, that is, like the one for the month selection.
You can choose whether to highlight the selected days with a circle or a rectangle.
You can also choose whether all days will be clickable or only the highlighted ones.
Last edited: