标签:android class blog c code ext
时间选择框:
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 class blog c code ext
原文地址:http://blog.csdn.net/u014608640/article/details/26831777