From 389853ce971a3da0e806dddd909bb43f5928c90c Mon Sep 17 00:00:00 2001 From: endian11 <Dana_Lee1016@126.com> Date: 星期二, 15 九月 2020 19:31:53 +0800 Subject: [PATCH] 路线采集ui --- app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java | 32 +++++++++++++++++++++++++++----- 1 files changed, 27 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java b/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java index 46d1402..2e54272 100644 --- a/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java +++ b/app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java @@ -66,6 +66,7 @@ import safeluck.drive.evaluation.cEventCenter.CEventCenter; import safeluck.drive.evaluation.cEventCenter.ICEventListener; +import safeluck.drive.evaluation.customview.MyInputDialog; import safeluck.drive.evaluation.customview.QRCodeDialog; import safeluck.drive.evaluation.customview.SelectDialog; import safeluck.drive.evaluation.customview.SelectDialogThree; @@ -75,6 +76,7 @@ import safeluck.drive.evaluation.platformMessage.JKMessage0204; import safeluck.drive.evaluation.platformMessage.PlatFormConstant; import safeluck.drive.evaluation.util.Utils; +import safeluck.drive.evaluation.widget.StatusDialog; /**鍗曟満璁粌UI * MyApplication2 @@ -575,15 +577,17 @@ // //TODO 鍙戦�丣KMessage0202 缁欏钩鍙帮紝寮�濮嬭�冭瘯 if (btn_start_exam.getText().toString().equalsIgnoreCase("寮�濮嬭缁�")){ - SelectDialogThree selectDialog = SelectDialogThree.newInstance("鍦哄湴璁粌","閬撹矾璁粌","閬撹矾璁粌(涓嶅惈鐏厜)"); + SelectDialogThree selectDialog = SelectDialogThree.newInstance("鍦哄湴璁粌","閬撹矾璁粌","閬撹矾璁粌(涓嶅惈鐏厜)","绾胯矾閲囬泦"); selectDialog.setSelectedListener((int res)->{ if (res != SelectDialog.SELECT_NONE){ if (res== SelectDialogThree.FIRST){ sendJK0202(2); }else if (res== SelectDialogThree.SECOND){ sendJK0202(3); - }else { + }else if (res == SelectDialogThree.THIRD){ sendJK0202(4); + }else{ + Toast.makeText(_mActivity, "绾胯矾閲囬泦", Toast.LENGTH_SHORT).show(); } } }); @@ -599,10 +603,28 @@ case R.id.view_map: - String url = getArcGisUrl(ExamPlatformData.getInstance().getExamType()); - Log.i(TAG,"map head lulao gps url="+url); - startArcGisMapFragment(url); +// String url = getArcGisUrl(ExamPlatformData.getInstance().getExamType()); +// Log.i(TAG,"map head lulao gps url="+url); +// startArcGisMapFragment(url); +// StatusDialog.with(_mActivity).setCancelable(true).setPrompt("鍔犺浇涓紝璇风◢鍚�...").setType(StatusDialog.Type.PROGRESS).show(); + MyInputDialog myDialog = MyInputDialog.Companion.newInstance("鎮ㄥ皢閫�鍑虹郴缁�,璇风‘璁ゆ暟鎹凡淇濆瓨"); + + myDialog.setOnClick(new MyInputDialog.MyOnClickListener() { + @Override + public void onSure(String string) { + + Log.i(TAG,"鏀跺埌鐨勶細"+string); + + } + + @Override + public void onCancle() { + + } + }); + + myDialog.show(getFragmentManager(),"mydialog"); break; case R.id.iv_head: MyLog.i(TAG,"瀛﹀憳绛惧埌"); -- Gitblit v1.8.0