时间选择框:
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();