xuxiuxi
2017-03-22 e76a6e62a9c398a3d0f5e7ec22c046cd72b420a9


git-svn-id: http://192.168.1.226/svn/proxy@171 454eff88-639b-444f-9e54-f578c98de674
1个文件已修改
75 ■■■■ 已修改文件
VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/RegisterFragment.java 75 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/ui/fragment/RegisterFragment.java
@@ -39,13 +39,40 @@
//@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();
@@ -59,50 +86,28 @@
    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();
    }