时间日期同步:
public void onDateChanged(DatePicker datePicker, int newyear, int newmonth, int newday) {
setTitle(newyear+"-"+(newmonth+1)+"-"+newday+" " +hour+":"+minute);
year = newyear;
month = newmonth+1;
day = newday;
}
public void onDateChanged(DatePicker datePicker, int newyear, int newmonth, int newday) {
setTitle(newyear+"-"+(newmonth+1)+"-"+newday+" " +hour+":"+minute);
year = newyear;
month = newmonth+1;
day = newday;
}
2016-11-27
这样也可以
String text =listView.getItemAtPosition(position).toString();
String text =listView.getItemAtPosition(position).toString();
2016-11-27
Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.ListView
2016-11-17