| | |
| | | public static List genderList = new ArrayList();
|
| | | public static List idTypeList = new ArrayList();
|
| | | public static List visitReasonList = new ArrayList();
|
| | | public int type;
|
| | |
|
| | | public static void setVisitorTypeList(List visitorTypeList) {
|
| | | AddDialog.visitorTypeList = visitorTypeList;
|
| | |
| | | }
|
| | |
|
| | | public AddDialog(View parentView, int type, OkClickedListener okButtonClickedListener) {
|
| | | this.type = type;
|
| | | this.parentView = parentView;
|
| | | View view = LayoutInflater.from(MainActivity.getInstance()).inflate(R.layout.dialog_add,null);
|
| | | ViewUtils.inject(this, view);
|
| | |
| | | style.selectedTextSize = 22;
|
| | | style.textSize = 16;
|
| | | style.holoBorderColor = Color.parseColor("#11c3e3");
|
| | |
|
| | |
|
| | | view.setOnTouchListener(new View.OnTouchListener() {
|
| | | @Override
|
| | |
| | | private void setTitleAndList(int type) {
|
| | | String tile = "";
|
| | | switch (type) {
|
| | | case Constant.DialogSelectType.VISIT_REASON_ADD:
|
| | | case Constant.DialogSelectType.VISIT_REASON:
|
| | | tile = "添加访问事由";
|
| | | break;
|
| | | case Constant.DialogSelectType.PROTOCOL:
|
| | | tile = "添加通讯";
|
| | | break;
|
| | | case Constant.DialogSelectType.RESOLUTION:
|
| | | tile = "添加分辨率";
|
| | | break;
|
| | | case Constant.DialogSelectType.CAMERA_BRAND:
|
| | | tile = "添加摄像机品牌";
|
| | | break;
|
| | | }
|
| | | dialog_add_title.setText(tile);
|
| | | }
|