DatePicker view in Sketchware
201 بار بازدید -
6 سال پیش
-
This video shows how to
This video shows how to create a DatePicker view programmatically and how to use it for selecting date in Sketchware.
The code used:
final DatePicker dp = new DatePicker(this);
int y = dp.getYear();
int m = dp.getMonth();
int d = dp.getDayOfMonth();
linear2.addView(dp);
dp.init(y, m, d, new DatePicker.OnDateChangedListener(){
public void onDateChanged(DatePicker view, int year, int month, int day){
int mon = month+1;
date = day + "/" + mon + "/" + year;
}
});
6 سال پیش
در تاریخ 1397/10/03 منتشر شده
است.
201
بـار بازدید شده