is not needed any more.#AdditionalJar: com.android.support:design
public Calendar[] getValidDays(Long nbDate, Long neDate, String[] lsHoli) {
Date begDate = new Date(nbDate);
Date endDate = new Date(neDate);
Calendar begCal = Calendar.getInstance();
Calendar endCal = Calendar.getInstance();
begCal.setTime(begDate);
endCal.setTime(endDate);
LinkedList<Calendar> daysList= new LinkedList<Calendar>();
Calendar[] daysArray;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String dtStr = null;
List<String> dayHoli = Arrays.asList(lsHoli);
while ( begCal.getTimeInMillis() <= endCal.getTimeInMillis()) {
if (begCal.get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) {
dtStr = sdf.format(begCal.getTime());
if (!dayHoli.contains(dtStr)) {
Calendar c = Calendar.getInstance();
c.setTimeInMillis(begCal.getTimeInMillis());
daysList.add(c);
}
}
begCal.setTimeInMillis(begCal.getTimeInMillis() + (24*60*60*1000));
}
daysArray = new Calendar[daysList.size()];
for (int i = 0; i < daysArray.length ; i++)
{
daysArray[i] = daysList.get(i);
}
return daysArray;
}
dpDate.SelectableDays = nativeMe.RunMethod("getValidDays", Array(minDate, maxDate, lstHolidays))
Generating R file. Error
C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res1\res\layout\mdtp_date_time_picker_dialog.xml:10: error: No resource identifier found for attribute 'layout_scrollFlags' in package 'b4a.example'
C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res1\res\layout\mdtp_date_time_picker_dialog.xml:16: error: No resource identifier found for attribute 'layout_behavior' in package 'b4a.example'
C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res1\res\layout\mdtp_date_time_picker_dialog.xml:16: error: Error: No resource found that matches the given name (at 'layout_behavior' with value '@string/appbar_scrolling_view_behavior').
B4A version: 7.01
Parsing code. (0.00s)
Compiling code. (0.04s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
invalid resource directory name: C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res3\res/values-b+sr+Latn
I get this when trying to build your example:
B4X:Generating R file. Error C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res1\res\layout\mdtp_date_time_picker_dialog.xml:10: error: No resource identifier found for attribute 'layout_scrollFlags' in package 'b4a.example' C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res1\res\layout\mdtp_date_time_picker_dialog.xml:16: error: No resource identifier found for attribute 'layout_behavior' in package 'b4a.example' C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res1\res\layout\mdtp_date_time_picker_dialog.xml:16: error: Error: No resource found that matches the given name (at 'layout_behavior' with value '@string/appbar_scrolling_view_behavior').
Adter adding the line: #AdditionalJar: com.android.support:design
I only get this error:
B4X:B4A version: 7.01 Parsing code. (0.00s) Compiling code. (0.04s) Compiling layouts code. (0.00s) Organizing libraries. (0.00s) Generating R file. Error invalid resource directory name: C:\Users\Marc\Documents\0_ELECTRONICS 2017\2017 Android development\MaterialDateTimePicker\Objects\bin\extra\res3\res/values-b+sr+Latn
I am using v1.7 of the library and tied JAR 23 and 26.
I am lost
#AdditionalJar: com.android.support:design
cal.Initialize("mm-dd-yyyy",cal.US,"01-01-2017")
Initialize with today and set cal.mindate to Jan 01 2017
Activity.LoadLayout("Layout1")
time.Initialize("Time",13,0,True)
date.Initialize("Date",2017,8,31)
Log(DateTime.DeviceDefaultTimeFormat)
Dim cal As Calendar
cal.Initialize("dd.mm.yyyy",cal.GERMAN,"1.1.2017")
date.MinDate = cal
Dim cal As Calendar
cal.Initialize("mm-dd-yyyy",cal.US,"")
date.MinDate = cal
This is my code from the example.
It is using V1.7 and it does not raise an unknown member error.
B4X:Activity.LoadLayout("Layout1") time.Initialize("Time",13,0,True) date.Initialize("Date",2017,8,31) Log(DateTime.DeviceDefaultTimeFormat) Dim cal As Calendar cal.Initialize("dd.mm.yyyy",cal.GERMAN,"1.1.2017") date.MinDate = cal
I have used (Month +1) So that it returns a (library return month +1) .Got lil confused looking at the library Example. Thank you for this great library.It could be easy if it returns Range 1- 12 though.i think you must asume month -1 or so. Something like that i have in mind...
0-11 are the returning months....
yes, if i have the source... I do not have the source anymore; i lost all my sources a few minths ago. Don´t expect to get any new version.It could be easy if it returns Range 1- 12 though.
Sorry to hear about that.Worst cases we faceyes, if i have the source... I do not have the source anymore; i lost all my sources a few minths ago. Don´t expect to get any new version.
Share code which i do not have anymore? HOW?????It could be very helpful if you could share some part of it
Share code which i do not have anymore? HOW?????
I have not any library similar to this. This library is one of around 50 libs i tried to wrap two years ago. ALL unsuccessfully exept this one. and all the sources are lost.Requesting latest wraps similar to those projects.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?