| | |
| | |
|
| | | @OnClick(R.id.register_birthday)
|
| | | public void register_birthday_click(View view) {
|
| | | Date date = new Date();
|
| | | BirthdayPickerDialog myDatePickerDialog=new BirthdayPickerDialog(getActivity(),android.R.style.Theme_Holo_Light_Dialog_NoActionBar,
|
| | | new BirthdayPickerDialog.OnDateSetListener(){
|
| | |
|
| | | @Override
|
| | | public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
|
| | | int month=monthOfYear+1;
|
| | | register_birthday.setValue(year+"-"+month+"-"+dayOfMonth);
|
| | | new BirthdayPickerDialog(
|
| | | new OkClickedListener(){
|
| | | public void onSelected(String value) {
|
| | | register_birthday.setValue(value);
|
| | | }
|
| | | },date);
|
| | | myDatePickerDialog.myShow();
|
| | | },new Date());
|
| | | }
|
| | |
|
| | | @OnClick(R.id.register_visitor_class)
|