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();


 

 


 

android弹出时间选择框,布布扣,bubuko.com

android弹出时间选择框

上一篇:nexus-->wrapper|OpenSCManager failed-拒绝访问.(0x5)


下一篇:AndroidStudio 添加LayoutCreator插件_自动生成指定布局代码