| | |
| | | import cn.com.basic.face.dialog.wheelview.adapter.BaseWheelAdapter;
|
| | | import cn.com.basic.face.dialog.wheelview.widget.WheelView;
|
| | | import cn.com.basic.face.discern.common.CommonVariables;
|
| | | import cn.com.basic.face.fragment.AttenderRegisterFragment;
|
| | | import cn.com.basic.face.util.Constant;
|
| | | import cn.com.basic.face.util.OkClickedListener;
|
| | | import cn.com.basic.face.util.SurveillanceQueryItemUtil;
|
| | |
| | |
|
| | | public static long selectedId = -1;
|
| | |
|
| | | public AttenderRegisterSelectPhotoDialog(View parentView, int type, OkClickedListener okButtonClickedListener, long selectedId) {
|
| | | this.parentView = parentView;
|
| | | private static AttenderRegisterSelectPhotoDialog instance = new AttenderRegisterSelectPhotoDialog();
|
| | | public static AttenderRegisterSelectPhotoDialog getInstance() {
|
| | | return instance;
|
| | | }
|
| | |
|
| | | public AttenderRegisterSelectPhotoDialog() {
|
| | | this.parentView = AttenderRegisterFragment.getInstance().get_fragment_attender_register_linear_layout();
|
| | | View view = LayoutInflater.from(MainActivity.getInstance()).inflate(R.layout.dialog_attender_register_select_photo_select,null);
|
| | | ViewUtils.inject(this, view);
|
| | |
|
| | |
| | | dialog_surveillance_photo_select_list_view.show(UnknownSurveillanceQueryItemUtil.getInstance().getAllUnregisterAttenderTwoRowsForSelect(selectedId));
|
| | | }
|
| | | }
|
| | | setTitleAndList(type);
|
| | | setTitleAndList(Constant.DialogSelectType.ID_TYPE);
|
| | | WheelView.WheelViewStyle style = new WheelView.WheelViewStyle();
|
| | | style.selectedTextColor = Color.parseColor("#11c3e3");
|
| | | style.textColor = Color.parseColor("#bcc6cf");
|
| | |
| | | this.setFocusable(true);
|
| | | //this.setBackgroundDrawable(new ColorDrawable(0x7f000000));
|
| | | this.setAnimationStyle(R.style.PopupSlideAnimation);
|
| | | okButtonClickedListeners.add(okButtonClickedListener);
|
| | | okButtonClickedListeners.add(new OkClickedListener() {
|
| | | @Override
|
| | | public void onSelected(String value) {
|
| | |
|
| | | }
|
| | | });
|
| | | this.showAtLocation(parentView, Gravity.BOTTOM,0,330);
|
| | | }
|
| | |
|
| | |
| | | AddDialog.visitReasonList = visitReasonList;
|
| | | }
|
| | |
|
| | | public void show() {
|
| | | if (this.isShowing()) {
|
| | |
|
| | | } else {
|
| | | //this.showAsDropDown();
|
| | | this.showAtLocation(parentView, Gravity.BOTTOM,0,330);
|
| | | }
|
| | | }
|
| | |
|
| | | public void hide() {
|
| | | if (this.isShowing()) {
|
| | | dismiss();
|
| | | } else {
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public static class WheelAdapter extends BaseWheelAdapter<String> {
|
| | | private Context mContext;
|