| | |
| | | import org.xutils.http.RequestParams;
|
| | |
|
| | | import java.io.ByteArrayOutputStream;
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
| | | public void onSelected(String value) {
|
| | | fragment_register_country.setValue(value);
|
| | | }
|
| | | });
|
| | | },fragment_register_country.getValue());
|
| | | }
|
| | |
|
| | | //@OnClick(R.id.fragment_register_gender)
|
| | |
| | | public void onSelected(String value) {
|
| | | fragment_register_gender.setValue(value);
|
| | | }
|
| | | });
|
| | | }, fragment_register_gender.getValue());
|
| | | }
|
| | |
|
| | | //@OnClick(R.id.fragment_register_birthday)
|
| | | public void fragment_register_birthday_click(View view) {
|
| | | String birthdayStr = fragment_register_birthday.getValue();
|
| | | Date birthday = new Date();
|
| | | if (birthdayStr != null && !"".equals(birthdayStr)) {
|
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
| | | try {
|
| | | birthday = sdf.parse(birthdayStr);
|
| | | } catch (Exception e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | new DateSelectDialog(
|
| | | new OkClickedListener(){
|
| | | public void onSelected(String value) {
|
| | | fragment_register_birthday.setValue(value);
|
| | | }
|
| | | },new Date());
|
| | | }, birthday);
|
| | | }
|
| | |
|
| | | //@OnClick(R.id.fragment_register_visitor_class)
|
| | |
| | | public void onSelected(String value) {
|
| | | fragment_register_visitor_class.setValue(value);
|
| | | }
|
| | | });
|
| | | }, fragment_register_visitor_class.getValue());
|
| | | }
|
| | |
|
| | | //@OnClick(R.id.fragment_register_id_class)
|
| | |
| | | public void onSelected(String value) {
|
| | | fragment_register_id_class.setValue(value);
|
| | | }
|
| | | });
|
| | | }, fragment_register_id_class.getValue());
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_register_back)
|