| | |
| | |
|
| | | import cn.com.basic.face.util.AppApi;
|
| | | import cn.com.basic.face.dialog.BirthdayPickerDialog;
|
| | | import cn.com.basic.face.dialog.CountrySelectionDialog;
|
| | | import cn.com.basic.face.dialog.CountryDialog;
|
| | | import cn.com.basic.face.widget.RegisterRightFieldLabelView;
|
| | | import cn.com.basic.face.widget.RegisterRightFieldTextView;
|
| | | import cn.com.basic.face.dialog.SingleSelectionDialog;
|
| | | import cn.com.basic.face.dialog.SelectDialog;
|
| | |
|
| | | import com.facebook.drawee.view.SimpleDraweeView;
|
| | | import com.lidroid.xutils.ViewUtils;
|
| | |
| | |
|
| | | import java.io.IOException;
|
| | | import java.util.Date;
|
| | | import java.util.HashMap;
|
| | | import java.util.List;
|
| | |
|
| | | import cn.com.basic.face.base.MainActivity;
|
| | |
| | | private List mSexList;
|
| | | private List mVisitorTypeList;
|
| | | private List mCredentialsList;
|
| | | private LinearLayout mBaseLayout;
|
| | |
|
| | | private String[] countryWordData;
|
| | | private List<String> countryWordList;
|
| | | private HashMap<String, List<String>> countryData;
|
| | | private LinearLayout fragment_register_linear_layout;
|
| | |
|
| | | private static RegisterFragment instance = new RegisterFragment();
|
| | |
|
| | |
| | |
|
| | | @Override
|
| | | protected void initViews(View view, Bundle savedInstanceState) {
|
| | | mBaseLayout = (LinearLayout) view.findViewById(R.id.fragment_register_linear_layout);
|
| | | ViewUtils.inject(this, mBaseLayout);
|
| | | fragment_register_linear_layout = (LinearLayout) view.findViewById(R.id.fragment_register_linear_layout);
|
| | | ViewUtils.inject(this, fragment_register_linear_layout);
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_register_save)
|
| | |
| | |
|
| | | @OnClick(R.id.register_gender)
|
| | | public void register_gender_click(View view) {
|
| | | SingleSelectionDialog popup = new SingleSelectionDialog(getActivity(),mSexList,"性别");
|
| | | popup.showAtLocation(mBaseLayout, Gravity.CENTER,0,0);
|
| | | SelectDialog popup = new SelectDialog(getActivity(),mSexList,"性别");
|
| | | popup.showAtLocation(fragment_register_linear_layout, Gravity.CENTER,0,0);
|
| | | popup.addOkButtonClickedListener(new OkButtonClickedListener() {
|
| | | @Override
|
| | | public void onItemSelected(int position, Object o, String item) {
|
| | |
| | |
|
| | | @OnClick(R.id.register_country)
|
| | | public void register_country_click(View view) {
|
| | | CountrySelectionDialog countrySelectionPopup = new CountrySelectionDialog(getActivity(),
|
| | | countryWordData,countryWordList,countryData);
|
| | | countrySelectionPopup.showAtLocation(mBaseLayout, Gravity.CENTER,0,0);
|
| | | countrySelectionPopup.addOkButtonClickedListener(new OkButtonClickedListener() {
|
| | | @Override
|
| | | new CountryDialog(fragment_register_linear_layout, new OkButtonClickedListener() {
|
| | | public void onItemSelected(int position, Object o, String item) {
|
| | | register_country.setValue(item);
|
| | | }
|
| | |
| | |
|
| | | @OnClick(R.id.register_visitor_class)
|
| | | public void register_visitor_class_click(View view) {
|
| | | SingleSelectionDialog popup1 = new SingleSelectionDialog(getActivity(),mVisitorTypeList,"访客类型");
|
| | | popup1.showAtLocation(mBaseLayout, Gravity.CENTER,0,0);
|
| | | SelectDialog popup1 = new SelectDialog(getActivity(),mVisitorTypeList,"访客类型");
|
| | | popup1.showAtLocation(fragment_register_linear_layout, Gravity.CENTER,0,0);
|
| | | popup1.addOkButtonClickedListener(new OkButtonClickedListener() {
|
| | | @Override
|
| | | public void onItemSelected(int position, Object o, String item) {
|
| | |
| | |
|
| | | @OnClick(R.id.register_id_class)
|
| | | public void register_id_class_click(View view) {
|
| | | SingleSelectionDialog popup2 = new SingleSelectionDialog(getActivity(),mCredentialsList,"证件类型");
|
| | | popup2.showAtLocation(mBaseLayout, Gravity.CENTER,0,0);
|
| | | SelectDialog popup2 = new SelectDialog(getActivity(),mCredentialsList,"证件类型");
|
| | | popup2.showAtLocation(fragment_register_linear_layout, Gravity.CENTER,0,0);
|
| | | popup2.addOkButtonClickedListener(new OkButtonClickedListener() {
|
| | | @Override
|
| | | public void onItemSelected(int position, Object o, String item) {
|
| | |
| | |
|
| | | public void setCredentialsList(List credentialsList) {
|
| | | this.mCredentialsList = credentialsList;
|
| | | }
|
| | |
|
| | | public void setCountryData(String[] countryWordData, List<String> countryWordList, HashMap<String, List<String>> countryData) {
|
| | | this.countryData = countryData;
|
| | | this.countryWordList = countryWordList;
|
| | | this.countryData = countryData;
|
| | | }
|
| | |
|
| | | @Override
|