| | |
| | | import me.yokeyword.fragmentation.SupportFragment; |
| | | import safeluck.drive.evaluation.Constant; |
| | | import safeluck.drive.evaluation.R; |
| | | import safeluck.drive.evaluation.bean.BaseDataUIBean; |
| | | import safeluck.drive.evaluation.bean.ExamPlatformData; |
| | | import safeluck.drive.evaluation.bean.MapInfoHead; |
| | | import safeluck.drive.evaluation.bean.RealTimeCarPos; |
| | | import safeluck.drive.evaluation.bean.RoadExamMap; |
| | | import safeluck.drive.evaluation.bean.RoadExamMap2; |
| | |
| | | mSurfaceView = view.findViewById(R.id.surfaceview); |
| | | view.findViewById(R.id.btn_reduce).setOnClickListener(this); |
| | | view.findViewById(R.id.btn_amplify).setOnClickListener(this); |
| | | view.findViewById(R.id.btn_change_map).setOnClickListener(this); |
| | | holder = mSurfaceView.getHolder(); |
| | | |
| | | holder.addCallback(new SurfaceHolder.Callback() { |
| | |
| | | pixels+=5; |
| | | } |
| | | break; |
| | | case R.id.btn_change_map: |
| | | MapInfoHead mapInfoHead = ExamPlatformData.getInstance().getMapInfoHeads().get(BaseDataUIBean.TYPE_.road); |
| | | String url = mapInfoHead.getGps_moinitor_url(); |
| | | Log.i(TAG,"map head lulao gps url="+url); |
| | | VPFragment jiaXiaoFragment = findFragment(VPFragment.class); |
| | | if (jiaXiaoFragment == null) { |
| | | jiaXiaoFragment = (VPFragment) VPFragment.newInstance(url); |
| | | } |
| | | start(jiaXiaoFragment); |
| | | break; |
| | | } |
| | | } |
| | | |