| | |
| | | //@ContentView(value = R.layout.fragment_register)
|
| | | public class RegisterFragment extends BaseFragment implements View.OnClickListener{
|
| | |
|
| | | private View mViewName,mViewSex,mViewNation,mViewBirthday,mViewVisitorClass,mViewPhone,mViewIdClass,mViewIdNumber,mViewCompayName,mViewRemark;
|
| | | private TextView mViewNameTitle,mViewSexTitle,mViewNationTitle,mViewBirthdyTitle, mViewIdentityTypeContent, mViewGenderContent, mViewCountryContent,mViewBirthdyContent,mViewVisitorClassContent,mViewVisitorClassTitle,mViewPhoneTitle,mViewIdClassTitle,mViewIdNumberTitle,mViewCompanyNameTitle,mViewRemarkTitle;
|
| | | @ViewInject(value = R.id.register_tv_content, parentId = R.id.register_id_class)
|
| | | private TextView mViewIdentityTypeContent;
|
| | | private TextView mViewGenderContent;
|
| | | private TextView mViewCountryContent;
|
| | | private TextView mViewBirthdyContent;
|
| | | private TextView mViewVisitorClassContent;
|
| | | private TextView mViewVisitorClassTitle;
|
| | |
|
| | | private EditText mViewNameContent,mViewPhoneContent, mViewIdentityContent,mViewCompanyNameContent,mViewRemarkContent;
|
| | | private List mSexList;
|
| | | private List mVisitorTypeList;
|
| | | private List mCredentialsList;
|
| | | private LinearLayout mBaseLayout;
|
| | |
|
| | | @ViewInject(R.id.register_name)
|
| | | private View mViewName;
|
| | | @ViewInject(R.id.register_sex)
|
| | | private View mViewSex;
|
| | | @ViewInject(R.id.register_nation)
|
| | | private View mViewNation;
|
| | | @ViewInject(R.id.register_birthday)
|
| | | private View mViewBirthday;
|
| | | @ViewInject(R.id.register_visitor_class)
|
| | | private View mViewVisitorClass;
|
| | | @ViewInject(R.id.register_phone)
|
| | | private View mViewPhone;
|
| | | @ViewInject(R.id.register_id_class)
|
| | | private View mViewIdClass;
|
| | | @ViewInject(R.id.register_id_num)
|
| | | private View mViewIdNumber;
|
| | | @ViewInject(R.id.register_company)
|
| | | private View mViewCompayName;
|
| | | @ViewInject(R.id.register_remark)
|
| | | private View mViewRemark;
|
| | |
|
| | | public static RegisterFragment newInstance() {
|
| | | return new RegisterFragment();
|
| | |
| | | protected void initViews(View view, Bundle savedInstanceState) {
|
| | | mBaseLayout = (LinearLayout) view.findViewById(R.id.register_base);
|
| | | ViewUtils.inject(this, mBaseLayout);
|
| | | mViewName = view.findViewById(R.id.register_name);
|
| | | mViewSex = view.findViewById(R.id.register_sex);
|
| | | mViewNation = view.findViewById(R.id.register_nation);
|
| | | mViewBirthday = view.findViewById(R.id.register_birthday);
|
| | | mViewVisitorClass = view.findViewById(R.id.register_visitor_class);
|
| | | mViewPhone = view.findViewById(R.id.register_phone);
|
| | | mViewIdClass = view.findViewById(R.id.register_id_class);
|
| | | mViewIdNumber = view.findViewById(R.id.register_id_num);
|
| | | mViewCompayName = view.findViewById(R.id.register_company);
|
| | | mViewRemark = view.findViewById(R.id.register_remark);
|
| | |
|
| | | mViewNameTitle = (TextView) mViewName.findViewById(R.id.register_et_title);
|
| | | mViewSexTitle = (TextView) mViewSex.findViewById(R.id.register_tv_title);
|
| | | mViewNationTitle = (TextView) mViewNation.findViewById(R.id.register_tv_title);
|
| | | mViewBirthdyTitle = (TextView) mViewBirthday.findViewById(R.id.register_tv_title);
|
| | | mViewVisitorClassTitle = (TextView) mViewVisitorClass.findViewById(R.id.register_tv_title);
|
| | | mViewPhoneTitle = (TextView) mViewPhone.findViewById(R.id.register_et_title);
|
| | | mViewIdClassTitle = (TextView) mViewIdClass.findViewById(R.id.register_tv_title);
|
| | | mViewIdNumberTitle = (TextView) mViewIdNumber.findViewById(R.id.register_et_title);
|
| | | mViewCompanyNameTitle = (TextView) mViewCompayName.findViewById(R.id.register_et_title);
|
| | | mViewRemarkTitle = (TextView) mViewRemark.findViewById(R.id.register_et_title);
|
| | | mViewGenderContent = (TextView) mViewSex.findViewById(R.id.register_tv_content);
|
| | | mViewCountryContent = (TextView) mViewNation.findViewById(R.id.register_tv_content);
|
| | | mViewBirthdyContent= (TextView) mViewBirthday.findViewById(R.id.register_tv_content);
|
| | | mViewVisitorClassContent = (TextView) mViewVisitorClass.findViewById(R.id.register_tv_content);
|
| | | mViewIdentityTypeContent = (TextView) mViewIdClass.findViewById(R.id.register_tv_content);
|
| | |
|
| | |
|
| | | // mViewIdentityTypeContent = (TextView) mViewIdClass.findViewById(R.id.register_tv_content);
|
| | | mViewNameContent = (EditText) mViewName.findViewById(R.id.register_et_content);
|
| | | mViewPhoneContent = (EditText) mViewPhone.findViewById(R.id.register_et_content);
|
| | | mViewIdentityContent = (EditText) mViewIdNumber.findViewById(R.id.register_et_content);
|
| | | mViewCompanyNameContent = (EditText) mViewCompayName.findViewById(R.id.register_et_content);
|
| | | mViewRemarkContent = (EditText) mViewRemark.findViewById(R.id.register_et_content);
|
| | |
|
| | | mViewNameTitle.setText(R.string.title_name);
|
| | | mViewSexTitle.setText(R.string.title_sex);
|
| | | mViewNationTitle.setText(R.string.title_nation);
|
| | | mViewBirthdyTitle.setText(R.string.title_birthday);
|
| | | mViewVisitorClassTitle.setText(R.string.title_visitorClass);
|
| | | mViewPhoneTitle.setText(R.string.title_phone);
|
| | | mViewIdClassTitle.setText(R.string.title_idClass);
|
| | | mViewIdNumberTitle.setText(R.string.title_idNumber);
|
| | | mViewCompanyNameTitle.setText(R.string.title_companyName);
|
| | | mViewRemarkTitle.setText(R.string.title_remark);
|
| | | ((TextView) mViewName.findViewById(R.id.register_et_title)).setText(R.string.title_name);
|
| | | ((TextView) mViewSex.findViewById(R.id.register_tv_title)).setText(R.string.title_sex);
|
| | | ((TextView) mViewNation.findViewById(R.id.register_tv_title)).setText(R.string.title_nation);
|
| | | ((TextView) mViewBirthday.findViewById(R.id.register_tv_title)).setText(R.string.title_birthday);
|
| | | ((TextView) mViewVisitorClass.findViewById(R.id.register_tv_title)).setText(R.string.title_visitorClass);
|
| | | ((TextView) mViewPhone.findViewById(R.id.register_et_title)).setText(R.string.title_phone);
|
| | | ((TextView) mViewIdClass.findViewById(R.id.register_tv_title)).setText(R.string.title_idClass);
|
| | | ((TextView) mViewIdNumber.findViewById(R.id.register_et_title)).setText(R.string.title_idNumber);
|
| | | ((TextView) mViewCompayName.findViewById(R.id.register_et_title)).setText(R.string.title_companyName);
|
| | | ((TextView) mViewRemark.findViewById(R.id.register_et_title)).setText(R.string.title_remark);
|
| | | Calendar calendar = Calendar.getInstance();
|
| | | }
|
| | |
|