| | |
| | | AddDialog.idTypeList = idTypeList;
|
| | | }
|
| | |
|
| | | public SurveillancePhotoDialog(View parentView, int type, OkClickedListener okButtonClickedListener) {
|
| | | public SurveillancePhotoDialog(View parentView, int type, OkClickedListener okButtonClickedListener, long selectedId) {
|
| | | this.parentView = parentView;
|
| | | View view = LayoutInflater.from(MainActivity.getInstance()).inflate(R.layout.dialog_surveillance_photo_select,null);
|
| | | ViewUtils.inject(this, view);
|
| | |
|
| | | dialog_surveillance_photo_select_list_view.show(SurveillanceMng.getInstance().getSurveillancePhotoList());
|
| | | dialog_surveillance_photo_select_list_view.show(SurveillanceMng.getInstance().getSurveillancePhotoList(selectedId));
|
| | |
|
| | | setTitleAndList(type);
|
| | | WheelView.WheelViewStyle style = new WheelView.WheelViewStyle();
|
| | |
| | | this.setHeight(RelativeLayout.LayoutParams.MATCH_PARENT);
|
| | | this.setWidth(RelativeLayout.LayoutParams.MATCH_PARENT);
|
| | | this.setFocusable(true);
|
| | | this.setBackgroundDrawable(new ColorDrawable(0x7f000000));
|
| | | this.setAnimationStyle(R.style.PopupAnimation);
|
| | | //this.setBackgroundDrawable(new ColorDrawable(0x7f000000));
|
| | | this.setAnimationStyle(R.style.PopupSlideAnimation);
|
| | | okButtonClickedListeners.add(okButtonClickedListener);
|
| | | this.showAtLocation(parentView, Gravity.BOTTOM,0,330);
|
| | | }
|