android弹出时间选择框

时间选择框:

	new DatePickerDialog(this, new OnDateSetListener() {

				@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
if (year >= 1910 && year <= 2014) {
int temp = monthOfYear + 1;
String monthStr = temp < 10 ? "0" + temp : "" + temp;
etBirthday.setText(year + "-" + monthStr + "-" + dayOfMonth);
} else {
AppMsg.makeText(PersonalEditActivity.this, "超出可设置范围");
}
}
}, 1990, 0, 1).show();
上一篇:EF常用命令行


下一篇:Asp.Net Web Api 2 实现多文件打包并下载文件示例源码_转