Android Question How to use DatePickerDialog.HighlightedDays

taylorw

Active Member
Licensed User
Hi everyone, I have try to use DatePickerDialog.HighlightedDays, anyone have used it before?
 

taylorw

Active Member
Licensed User
Hi, that is the link of the library https://www.b4x.com/android/help/materialdatetimepicker.html#datepickerdialog.

And this is my code.

B4X:
Dim cal As Calendar
Dim DP As DatePickerDialog
    cal.Initialize("MMM dd, yyyy",cal.US,DateTime.Date(DateTime.Now))
    
    DP.Initialize("Date_From_Picker",DateTime.GetYear(DateTime.Now),DateTime.GetMonth(DateTime.now) - 1,DateTime.GetDayOfMonth(DateTime.now))
    DP.HighlightedDays( Array As Calendar(cal))
    DP.show("Date_From_Picker")
But I get this error.
error: not a statement
mostCurrent._dp.getHighlightedDays()[(int)(new de.donmanfred.CalendarWrapper[]{_cal})];
 

taylorw

Active Member
Licensed User
I do not have the source of this lib anymore. Lost with a HDD crash in 2017.
I can´t help here anymore.

If the lib does not work for you then you need to find another DatePicker. Sorry.
It's okay, thank for your help. :)
 
Top