Browse Source

添加新站点

huyuguo 5 years ago
parent
commit
5b496a783e

+ 20 - 778
app/src/main/java/com/electric/chargingpile/activity/ShareTwoActivity.java

97
    Bitmap bm = null;
97
    Bitmap bm = null;
98
    private TextView shareList, tvO, tvT, tvTh, tvF, tvFi, zhuangType, costWay, shareNext;
98
    private TextView shareList, tvO, tvT, tvTh, tvF, tvFi, zhuangType, costWay, shareNext;
99
99
100
    //    public MyLocationListenner myListener = new MyLocationListenner();
101
//    BaiduMapOptions mapOptions;
102
    private TimePickerDialog tpd_open = null;
100
    private TimePickerDialog tpd_open = null;
103
    private TimePickerDialog tpd_close = null;
101
    private TimePickerDialog tpd_close = null;
104
    private String camePath;//拍照路径
102
    private String camePath;//拍照路径
112
110
113
    private ImageView inBtn, outBtn;
111
    private ImageView inBtn, outBtn;
114
    private String jing, wei;
112
    private String jing, wei;
115
    private int sdkVersion;
116
//    private LocationMode mCurrentMode;
117
113
118
114
119
    public static boolean isFirstLoc = true;
115
    public static boolean isFirstLoc = true;
126
122
127
    ToggleButton carType;
123
    ToggleButton carType;
128
    private String suit_car2 = "国标";
124
    private String suit_car2 = "国标";
129
    //    BitmapDescriptor mCurrentMarker;
130
125
131
    private static boolean isGetData = false;
126
    private static boolean isGetData = false;
132
127
173
                case 2:
168
                case 2:
174
                    Toast.makeText(ShareTwoActivity.this, "提交信息成功,感谢您的分享", Toast.LENGTH_SHORT).show();
169
                    Toast.makeText(ShareTwoActivity.this, "提交信息成功,感谢您的分享", Toast.LENGTH_SHORT).show();
175
                    dismissDialog();
170
                    dismissDialog();
176
//                    for(int i=0;i< PublicWay.activityList.size();i++){
177
//                        if (null != PublicWay.activityList.get(i)) {
178
//                            Bimp.tempSelectBitmap.clear();
179
////                                    PublicWay.activityList.get(i).finish();
180
//                        }
181
//                    }
182
                    startActivity(new Intent(getApplication(), ShareListActivity.class));
171
                    startActivity(new Intent(getApplication(), ShareListActivity.class));
183
                    SharedPreferencesUtil sharedPreferencesUtil = new SharedPreferencesUtil(getApplication());
172
                    SharedPreferencesUtil sharedPreferencesUtil = new SharedPreferencesUtil(getApplication());
184
                    sharedPreferencesUtil.setFileName("shareInfo");
173
                    sharedPreferencesUtil.setFileName("shareInfo");
210
                                        @Override
199
                                        @Override
211
                                        public void onClick(View v) {
200
                                        public void onClick(View v) {
212
                                            startActivity(new Intent(ShareTwoActivity.this, ShareListActivity.class));
201
                                            startActivity(new Intent(ShareTwoActivity.this, ShareListActivity.class));
213
//                                            for(int i=0;i<PublicWay.activityList.size();i++){
214
//                                                if (null != PublicWay.activityList.get(i)) {
215
//                                                    Bimp.tempSelectBitmap.clear();
216
////                                    PublicWay.activityList.get(i).finish();
217
//                                                }
218
//                                            }
219
                                            finish();
202
                                            finish();
220
                                        }
203
                                        }
221
                                    }).show();
204
                                    }).show();
235
            }
218
            }
236
        }
219
        }
237
    };
220
    };
221
    private EditText chargeCostWay;
222
    private EditText telephone;
238
223
239
224
240
    @Override
225
    @Override
246
                getResources(),
231
                getResources(),
247
                R.drawable.addpic65);
232
                R.drawable.addpic65);
248
        PublicWayFour.activityList.add(this);
233
        PublicWayFour.activityList.add(this);
249
        sdkVersion = Integer.valueOf(android.os.Build.VERSION.SDK);
250
234
251
//        parentView = getLayoutInflater().inflate(R.layout.activity_selectimg, null);
252
//        setContentView(parentView);
253
        setContentView(R.layout.activity_share_two);
235
        setContentView(R.layout.activity_share_two);
254
        list = new ArrayList<>();
236
        list = new ArrayList<>();
255
        mContext = this;
237
        mContext = this;
256
        BarColorUtil.initStatusBarColor(ShareTwoActivity.this);
238
        BarColorUtil.initStatusBarColor(ShareTwoActivity.this);
257
//        map = new HashMap<>();
258
        initView();
239
        initView();
259
        Init();
240
        Init();
260
//        initData();
261
//        firstSelect();
262
    }
241
    }
263
242
264
    private void showTextToast(String msg) {
243
    private void showTextToast(String msg) {
333
                    photo();
312
                    photo();
334
                } else {
313
                } else {
335
                    ToastUtil.showToast(getApplicationContext(), "您当前关闭了调用摄像头权限,可前往设置开启权限", Toast.LENGTH_SHORT);
314
                    ToastUtil.showToast(getApplicationContext(), "您当前关闭了调用摄像头权限,可前往设置开启权限", Toast.LENGTH_SHORT);
336
                  }
315
                }
337
316
338
            }
317
            }
339
        });
318
        });
365
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
344
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
366
                                    long arg3) {
345
                                    long arg3) {
367
                if (arg2 == Bimp.tempSelectBitmap.size()) {
346
                if (arg2 == Bimp.tempSelectBitmap.size()) {
368
//                    Log.i("ddddddd", "----------");
369
//                    ll_popup.startAnimation(AnimationUtils.loadAnimation(ShareTwoActivity.this,R.anim.activity_translate_in));
370
//                    pop.showAtLocation(parent, Gravity.CENTER, 0, 0);
371
                    permissionTask();
347
                    permissionTask();
372
348
373
                } else {
349
                } else {
394
                .setShowGif(true)//是否显示动态图
370
                .setShowGif(true)//是否显示动态图
395
                .setPreviewEnabled(true)//是否可以预览
371
                .setPreviewEnabled(true)//是否可以预览
396
                .start(this, PhotoPicker.REQUEST_CODE);
372
                .start(this, PhotoPicker.REQUEST_CODE);
397
398
399
//        PhotoPreview.builder()
400
//                .setPhotos(selectedPhotos)
401
//                .setCurrentItem(position)
402
//                .setShowDeleteButton(false)
403
//                .start(MainActivity.this);
404
405
406
    }
373
    }
407
374
408
    @Override
375
    @Override
517
        slowNum = (EditText) findViewById(R.id.et_slowNum);
484
        slowNum = (EditText) findViewById(R.id.et_slowNum);
518
        parkCost = (EditText) findViewById(R.id.et_parkCost);
485
        parkCost = (EditText) findViewById(R.id.et_parkCost);
519
        chargeCost = (EditText) findViewById(R.id.et_chargeCost);
486
        chargeCost = (EditText) findViewById(R.id.et_chargeCost);
487
        chargeCostWay = findViewById(R.id.et_charge_cost_way); // 收费方式
520
        costWay = (TextView) findViewById(R.id.tv_costtype);
488
        costWay = (TextView) findViewById(R.id.tv_costtype);
489
        telephone = findViewById(R.id.et_telephone);   // 运营商电话
521
        costWay.setOnClickListener(this);
490
        costWay.setOnClickListener(this);
522
        ib_loaction = (ImageView) findViewById(R.id.ib_location);
491
        ib_loaction = (ImageView) findViewById(R.id.ib_location);
523
        ib_loaction.setOnClickListener(this);
492
        ib_loaction.setOnClickListener(this);
568
        close_time = (TextView) findViewById(R.id.tv_ferfect_time);
537
        close_time = (TextView) findViewById(R.id.tv_ferfect_time);
569
        close_time.setOnClickListener(this);
538
        close_time.setOnClickListener(this);
570
539
571
//        mMapView = (MapView) findViewById(R.id.mapView_share);
572
        et_share_address = (TextView) findViewById(R.id.et_share_address);
540
        et_share_address = (TextView) findViewById(R.id.et_share_address);
573
        zhuangType = (TextView) findViewById(R.id.tv_zhuangType);
541
        zhuangType = (TextView) findViewById(R.id.tv_zhuangType);
574
542
610
                rb_xia.setBackgroundResource(R.drawable.icon_xiaselected1105);
578
                rb_xia.setBackgroundResource(R.drawable.icon_xiaselected1105);
611
                break;
579
                break;
612
580
613
614
//            case R.id.ib_location:
615
//                if (!isFirstLoc) {
616
//                    isFirstLoc = true;
617
//                    // Toast.makeText(this,"正在定位当前位置...",Toast.LENGTH_LONG);
618
//                    mCurrentMode = MyLocationConfiguration.LocationMode.NORMAL;
619
//                    mBaiduMap
620
//                            .setMyLocationConfigeration(new MyLocationConfiguration(
621
//                                    mCurrentMode, true, mCurrentMarker));
622
//                    mBaiduMap.setMapStatus(MapStatusUpdateFactory
623
//                            .newMapStatus(new MapStatus.Builder().zoom(15f).build()));
624
//                    mBaiduMap.setMyLocationEnabled(true);
625
//                    mLocClient.start();
626
//                }
627
//                break;
628
629
            case R.id.tv_notice:
581
            case R.id.tv_notice:
630
                tv_notice.setVisibility(View.GONE);
582
                tv_notice.setVisibility(View.GONE);
631
                break;
583
                break;
632
584
633
            case R.id.tv_costtype:
585
            case R.id.tv_costtype:
634
635
                startActivity(new Intent(ShareTwoActivity.this, ChargeCostWayActivity.class));
586
                startActivity(new Intent(ShareTwoActivity.this, ChargeCostWayActivity.class));
636
//                LayoutInflater inflater1 = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
637
//                popupWindowView = inflater1.inflate(R.layout.popupwindow_cost, null);
638
//                popupWindow = new PopupWindow(popupWindowView,
639
//                        ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT,
640
//                        true);
641
//                popupWindow.setBackgroundDrawable(new BitmapDrawable());
642
//                // 设置PopupWindow的弹出和消失效果
643
//                popupWindow.setAnimationStyle(R.style.popupAnimation);
644
////                confirmButton = (Button) popupWindowView
645
////                        .findViewById(R.id.confirmButton);
646
////                confirmButton.setOnClickListener(new OnClickListener() {
647
////                    @Override
648
////                    public void onClick(View view) {
649
////                        popupWindow.dismiss();
650
////                    }
651
////                });
652
//                cancleButton = (Button) popupWindowView
653
//                        .findViewById(R.id.cancleButton);
654
//                cancleButton.setOnClickListener(new View.OnClickListener() {
655
//                    @Override
656
//                    public void onClick(View view) {
657
//                        popupWindow.dismiss();
658
//                    }
659
//                });
660
//                TextView tvO1 = (TextView) popupWindowView.findViewById(R.id.tvOne);
661
//                tvO1.setOnClickListener(new View.OnClickListener() {
662
//                    @Override
663
//                    public void onClick(View view) {
664
//                        costWay.setText("国网电卡");
665
//                        popupWindow.dismiss();
666
//                    }
667
//                });
668
//                TextView tvT2 = (TextView) popupWindowView.findViewById(R.id.tvTwo);
669
//                tvT2.setOnClickListener(new View.OnClickListener() {
670
//                    @Override
671
//                    public void onClick(View view) {
672
//                        costWay.setText("普天电卡");
673
//                        popupWindow.dismiss();
674
//                    }
675
//                });
676
//                TextView tvTh3 = (TextView) popupWindowView.findViewById(R.id.tvThree);
677
//                tvTh3.setOnClickListener(new View.OnClickListener() {
678
//                    @Override
679
//                    public void onClick(View view) {
680
//                        costWay.setText("特来电APP");
681
//                        popupWindow.dismiss();
682
//                    }
683
//                });
684
//                TextView tvF4 = (TextView) popupWindowView.findViewById(R.id.tvFour);
685
//                tvF4.setOnClickListener(new View.OnClickListener() {
686
//                    @Override
687
//                    public void onClick(View view) {
688
//                        costWay.setText("现金");
689
//                        popupWindow.dismiss();
690
//                    }
691
//                });
692
//                tvFi = (TextView) popupWindowView.findViewById(R.id.tvFive);
693
//                tvFi.setOnClickListener(new View.OnClickListener() {
694
//                    @Override
695
//                    public void onClick(View view) {
696
//                        costWay.setText("其他");
697
//                        popupWindow.dismiss();
698
//                    }
699
//                });
700
//                TextView tvF6 = (TextView) popupWindowView.findViewById(R.id.tvSix);
701
//                tvF6.setOnClickListener(new View.OnClickListener() {
702
//                    @Override
703
//                    public void onClick(View view) {
704
//                        costWay.setText("4S店电卡");
705
//                        popupWindow.dismiss();
706
//                    }
707
//                });
708
//                TextView tvF7 = (TextView) popupWindowView.findViewById(R.id.tvSeven);
709
//                tvF7.setOnClickListener(new View.OnClickListener() {
710
//                    @Override
711
//                    public void onClick(View view) {
712
//                        costWay.setText("小易充电");
713
//                        popupWindow.dismiss();
714
//                    }
715
//                });
716
//                TextView tvF8 = (TextView) popupWindowView.findViewById(R.id.tvEight);
717
//                tvF8.setOnClickListener(new View.OnClickListener() {
718
//                    @Override
719
//                    public void onClick(View view) {
720
//                        costWay.setText("国网高速公路专用卡");
721
//                        popupWindow.dismiss();
722
//                    }
723
//                });
724
//                TextView  tvXingXing = (TextView) popupWindowView.findViewById(R.id.tvXingXing);
725
//                tvXingXing.setOnClickListener(new View.OnClickListener() {
726
//                    @Override
727
//                    public void onClick(View view) {
728
//                        Log.e("!!!","点击");
729
//                        costWay.setText("星星充电APP");
730
//                        popupWindow.dismiss();
731
//
732
//                    }
733
//                });
734
//
735
//
736
//                TextView tvJuDian = (TextView) popupWindowView.findViewById(R.id.tvJuDian);
737
//                tvJuDian.setOnClickListener(new View.OnClickListener() {
738
//                    @Override
739
//                    public void onClick(View v) {
740
//                        Log.e("!!!","点击");
741
//                        costWay.setText("聚电桩APP");
742
//                        popupWindow.dismiss();
743
//                    }
744
//                });
745
//                TextView tvEv = (TextView) popupWindowView.findViewById(R.id.tvev);
746
//                tvEv.setOnClickListener(new View.OnClickListener() {
747
//                    @Override
748
//                    public void onClick(View view) {
749
//                        costWay.setText("EVCARD电卡");
750
//                        popupWindow.dismiss();
751
//
752
//                    }
753
//                });
754
//
755
//                TextView tvyi = (TextView) popupWindowView.findViewById(R.id.tvYiChong);
756
//                tvyi.setOnClickListener(new View.OnClickListener() {
757
//                    @Override
758
//                    public void onClick(View view) {
759
//                        costWay.setText("易充卡");
760
//                        popupWindow.dismiss();
761
//
762
//                    }
763
//                });
764
//                popupWindow.showAtLocation(cancleButton, Gravity.CENTER, 0, 0);
765
                break;
587
                break;
766
//            case R.id.iv_back:
767
//                finish();
768
//                break;
769
            case R.id.share_next:
588
            case R.id.share_next: // 立即提交
770
                if (et_share_address.getText().toString().equals("")) {
589
                if (et_share_address.getText().toString().equals("")) {
771
                    Toast.makeText(this, "请选择充电站地址", Toast.LENGTH_SHORT).show();
590
                    Toast.makeText(this, "请选择充电站地址", Toast.LENGTH_SHORT).show();
772
                } else if (zhanName.getText().toString().equals("")) {
591
                } else if (zhanName.getText().toString().equals("")) {
775
                    Toast.makeText(this, "请填写桩数量", Toast.LENGTH_SHORT).show();
594
                    Toast.makeText(this, "请填写桩数量", Toast.LENGTH_SHORT).show();
776
                } else if (chargeCost.getText().toString().equals("")) {
595
                } else if (chargeCost.getText().toString().equals("")) {
777
                    Toast.makeText(this, "请填写充电费", Toast.LENGTH_SHORT).show();
596
                    Toast.makeText(this, "请填写充电费", Toast.LENGTH_SHORT).show();
597
                } else if (chargeCostWay.getText().toString().equals("")) {
598
                    Toast.makeText(this, "请填写收费方式", Toast.LENGTH_SHORT).show();
778
                } else if (et_serviceCost.getText().toString().equals("")) {
599
                } else if (et_serviceCost.getText().toString().equals("")) {
779
                    Toast.makeText(this, "请填写服务费", Toast.LENGTH_SHORT).show();
600
                    Toast.makeText(this, "请填写服务费", Toast.LENGTH_SHORT).show();
780
                } else if (parkCost.getText().toString().equals("")) {
601
                } else if (parkCost.getText().toString().equals("")) {
781
                    Toast.makeText(this, "请填写停车费", Toast.LENGTH_SHORT).show();
602
                    Toast.makeText(this, "请填写停车费", Toast.LENGTH_SHORT).show();
782
                } else if (costWay.getText().toString().equals("")) {
603
                } else if (costWay.getText().toString().equals("")) {
783
                    Toast.makeText(this, "请选择运营商", Toast.LENGTH_SHORT).show();
604
                    Toast.makeText(this, "请选择运营商", Toast.LENGTH_SHORT).show();
605
                } else if (telephone.getText().toString().equals("")) {
606
                    Toast.makeText(this, "请填写运营商电话", Toast.LENGTH_SHORT).show();
784
                } else if (Bimp.tempSelectBitmap.size() == 0) {
607
                } else if (Bimp.tempSelectBitmap.size() == 0) {
785
                    Toast.makeText(this, "请上传图片", Toast.LENGTH_SHORT).show();
608
                    Toast.makeText(this, "请上传图片", Toast.LENGTH_SHORT).show();
786
                } else {
609
                } else {
800
                    new Thread(new Runnable() {
623
                    new Thread(new Runnable() {
801
                        @Override
624
                        @Override
802
                        public void run() {
625
                        public void run() {
803
//                       submitShareTwo();
804
805
                            try {
626
                            try {
806
807
                                shite("");
627
                                shite("");
808
628
809
810
                            } catch (Exception e) {
629
                            } catch (Exception e) {
811
                                e.printStackTrace();
630
                                e.printStackTrace();
812
                            }
631
                            }
813
814
//                    uploadFile();
815
                        }
632
                        }
816
                    }).start();
633
                    }).start();
817
                }
634
                }
818
//                if (!zhanName.getText().toString().equals("") && !fastNum.getText().toString().equals("") && !slowNum.getText().toString().equals("")
819
//                        && !chargeCost.getText().toString().equals("") && !costWay.getText().toString().equals("请选择支付方式")
820
//                        && !parkCost.getText().toString().equals("") && !et_share_address.getText().toString().equals("")
821
//                        && !et_serviceCost.getText().toString().equals("")) {
822
//                    createDialog();
823
//                    new Thread(new Runnable() {
824
//                        @Override
825
//                        public void run() {
826
////                       submitShareTwo();
827
//
828
//                            try {
829
//
830
//                                shite("");
831
//
832
//
833
//                            } catch (Exception e) {
834
//                                e.printStackTrace();
835
//                            }
836
//
837
////                    uploadFile();
838
//                        }
839
//                    }).start();
840
//                }else{
841
//                    Toast.makeText(ShareTwoActivity.this,"请确认必填项是否全部填写",Toast.LENGTH_SHORT).show();
842
//                }
635
843
                break;
636
                break;
844
//            case R.id.rl_open_object:
845
//                LayoutInflater inflater1 = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
846
//                popupWindowView = inflater1.inflate(R.layout.popupwindow_open, null);
847
//                popupWindow = new PopupWindow(popupWindowView,
848
//                        ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT,
849
//                        true);
850
//                popupWindow.setBackgroundDrawable(new BitmapDrawable());
851
//                // 设置PopupWindow的弹出和消失效果
852
//                popupWindow.setAnimationStyle(R.style.popupAnimation);
853
////                confirmButton = (Button) popupWindowView
854
////                        .findViewById(R.id.confirmButton);
855
////                confirmButton.setOnClickListener(new View.OnClickListener() {
856
////                    @Override
857
////                    public void onClick(View view) {
858
////                        Toast.makeText(ShareTwoActivity.this, "YES", Toast.LENGTH_SHORT).show();
859
////                        popupWindow.dismiss();
860
////                    }
861
////                });
862
//                cancleButton = (Button) popupWindowView
863
//                        .findViewById(R.id.cancleButton);
864
//                cancleButton.setOnClickListener(new View.OnClickListener() {
865
//                    @Override
866
//                    public void onClick(View view) {
867
////                        Toast.makeText(ShareTwoActivity.this, "NO", Toast.LENGTH_SHORT).show();
868
//                        popupWindow.dismiss();
869
//                    }
870
//                });
871
//                 TextView tvOne1 = (TextView) popupWindowView.findViewById(R.id.tvOne);
872
//                tvOne1.setOnClickListener(new View.OnClickListener() {
873
//                    @Override
874
//                    public void onClick(View view) {
875
//                        et_open_object.setText("开放");
876
//                        popupWindow.dismiss();
877
//                    }
878
//                });
879
//                 TextView tvTwo1 = (TextView) popupWindowView.findViewById(R.id.tvTwo);
880
//                tvTwo1.setOnClickListener(new View.OnClickListener() {
881
//                    @Override
882
//                    public void onClick(View view) {
883
//                        et_open_object.setText("对内开放");
884
//                        popupWindow.dismiss();
885
//                    }
886
//                });
887
//                popupWindow.showAtLocation(cancleButton, Gravity.CENTER, 0, 0);
888
//                break;
889
//            case R.id.rl_charge_cost_style:
890
//                LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
891
//                popupWindowView = inflater.inflate(R.layout.popupwindow_cost, null);
892
//                popupWindow = new PopupWindow(popupWindowView,
893
//                        ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT,
894
//                        true);
895
//                popupWindow.setBackgroundDrawable(new BitmapDrawable());
896
//                // 设置PopupWindow的弹出和消失效果
897
//                popupWindow.setAnimationStyle(R.style.popupAnimation);
898
////                confirmButton = (Button) popupWindowView
899
//                        .findViewById(R.id.confirmButton);
900
//                confirmButton.setOnClickListener(new View.OnClickListener() {
901
//                    @Override
902
//                    public void onClick(View view) {
903
//                        Toast.makeText(ShareTwoActivity.this, "YES", Toast.LENGTH_SHORT).show();
904
//                        popupWindow.dismiss();
905
//                    }
906
//                });
907
//                cancleButton = (Button) popupWindowView
908
//                        .findViewById(R.id.cancleButton);
909
//                cancleButton.setOnClickListener(new View.OnClickListener() {
910
//                    @Override
911
//                    public void onClick(View view) {
912
////                        Toast.makeText(ShareTwoActivity.this, "NO", Toast.LENGTH_SHORT).show();
913
//                        popupWindow.dismiss();
914
//                    }
915
//                });
916
//                tvOne = (TextView) popupWindowView.findViewById(R.id.tvOne);
917
//                tvOne.setOnClickListener(new View.OnClickListener() {
918
//                    @Override
919
//                    public void onClick(View view) {
920
//                        et_style.setText("北京国家电网充电卡");
921
//                        popupWindow.dismiss();
922
//                    }
923
//                });
924
//                tvTwo = (TextView) popupWindowView.findViewById(R.id.tvTwo);
925
//                tvTwo.setOnClickListener(new View.OnClickListener() {
926
//                    @Override
927
//                    public void onClick(View view) {
928
//                        et_style.setText("北京富电科技充电卡");
929
//                        popupWindow.dismiss();
930
//                    }
931
//                });
932
//                tvThree = (TextView) popupWindowView.findViewById(R.id.tvThree);
933
//                tvThree.setOnClickListener(new View.OnClickListener() {
934
//                    @Override
935
//                    public void onClick(View view) {
936
//                        et_style.setText("北京普天新能源充电卡");
937
//                        popupWindow.dismiss();
938
//                    }
939
//                });
940
//                tvFour = (TextView) popupWindowView.findViewById(R.id.tvFour);
941
//                tvFour.setOnClickListener(new View.OnClickListener() {
942
//                    @Override
943
//                    public void onClick(View view) {
944
//                        et_style.setText("上海国家电网充电卡");
945
//                        popupWindow.dismiss();
946
//                    }
947
//                });
948
//                tvFive = (TextView) popupWindowView.findViewById(R.id.tvFive);
949
//                tvFive.setOnClickListener(new View.OnClickListener() {
950
//                    @Override
951
//                    public void onClick(View view) {
952
//                        et_style.setText("上海普天新能源充电卡");
953
//                        popupWindow.dismiss();
954
//                    }
955
//                });
956
//                tvSix = (TextView) popupWindowView.findViewById(R.id.tvSix);
957
//              tvSix.setOnClickListener(new View.OnClickListener() {
958
//                    @Override
959
//                    public void onClick(View view) {
960
//                        et_style.setFocusableInTouchMode(true);
961
//                        popupWindow.dismiss();
962
//                    }
963
//                });
964
//                popupWindow.showAtLocation(cancleButton, Gravity.CENTER, 0, 0);
965
//                break;
966
//            case R.id.ll_add_photo:
967
//                CharSequence[] items = { "手机相册","拍照" };
968
//                // CharSequence[] items = { "手机相册", "手机拍照" };
969
//                imageChooseItem(items);
970
//
971
//
972
//                break;
973
974
//            case R.id.tv_holiday_start_time:
975
//                if (tpd_holiday_open == null) {
976
//                    TimePickerDialog.OnTimeSetListener otsl = new TimePickerDialog.OnTimeSetListener() {
977
//                        public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
978
//                            holiday_open.setText(((hourOfDay < 10 ? 0 + "" + hourOfDay : hourOfDay) + ":" + (minute < 10 ? 0 + "" + minute : minute)).toString());
979
//                            //close_time.setText(((hourOfDay < 10 ? 0 +""+ hourOfDay : hourOfDay)+":"+(minute<10?0+""+minute:minute)).toString());
980
//                            tpd_holiday_open.dismiss();
981
//                        }
982
//                    };
983
//                    Calendar calendar = Calendar.getInstance(TimeZone.getDefault());
984
//                    int hourOfDay = calendar.get(Calendar.HOUR_OF_DAY);
985
//                    int minute = calendar.get(Calendar.MINUTE);
986
//                    tpd_holiday_open = new TimePickerDialog(this, otsl, hourOfDay, minute, true);
987
//                }
988
//                tpd_holiday_open.show();
989
//                break;
990
//
991
//            case R.id.tv_holiday_stop_time:
992
//                if (tpd_holiday_close == null) {
993
//                    TimePickerDialog.OnTimeSetListener otsl = new TimePickerDialog.OnTimeSetListener() {
994
//                        public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
995
//                            holiday_close.setText(((hourOfDay < 10 ? 0 + "" + hourOfDay : hourOfDay) + ":" + (minute < 10 ? 0 + "" + minute : minute)).toString());
996
//                            //close_time.setText(((hourOfDay < 10 ? 0 +""+ hourOfDay : hourOfDay)+":"+(minute<10?0+""+minute:minute)).toString());
997
//                            tpd_holiday_close.dismiss();
998
//                        }
999
//                    };
1000
//                    Calendar calendar = Calendar.getInstance(TimeZone.getDefault());
1001
//                    int hourOfDay = calendar.get(Calendar.HOUR_OF_DAY);
1002
//                    int minute = calendar.get(Calendar.MINUTE);
1003
//                    tpd_holiday_close = new TimePickerDialog(this, otsl, hourOfDay, minute, true);
1004
//                }
1005
//                tpd_holiday_close.show();
1006
//                break;
637
1007
            case R.id.tv_prefect_start_time:
638
            case R.id.tv_prefect_start_time:
1008
                if (tpd_open == null) {
639
                if (tpd_open == null) {
1009
                    TimePickerDialog.OnTimeSetListener otsl = new TimePickerDialog.OnTimeSetListener() {
640
                    TimePickerDialog.OnTimeSetListener otsl = new TimePickerDialog.OnTimeSetListener() {
1024
                if (tpd_close == null) {
655
                if (tpd_close == null) {
1025
                    TimePickerDialog.OnTimeSetListener otsl = new TimePickerDialog.OnTimeSetListener() {
656
                    TimePickerDialog.OnTimeSetListener otsl = new TimePickerDialog.OnTimeSetListener() {
1026
                        public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
657
                        public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
1027
                            //open_time.setText(((hourOfDay < 10 ? 0 +""+ hourOfDay : hourOfDay)+":"+(minute<10?0+""+minute:minute)).toString());
1028
                            close_time.setText(((hourOfDay < 10 ? 0 + "" + hourOfDay : hourOfDay) + ":" + (minute < 10 ? 0 + "" + minute : minute)).toString());
658
                            close_time.setText(((hourOfDay < 10 ? 0 + "" + hourOfDay : hourOfDay) + ":" + (minute < 10 ? 0 + "" + minute : minute)).toString());
1029
                            tpd_close.dismiss();
659
                            tpd_close.dismiss();
1030
                        }
660
                        }
1036
                }
666
                }
1037
                tpd_close.show();
667
                tpd_close.show();
1038
                break;
668
                break;
1039
//            case R.id.tv_next:
1040
//                Intent intent = new Intent(getApplication(), ShareThreeActivity.class);
1041
//                intent.putExtra("location", share_address);
1042
//                intent.putExtra("POI_jing", poi_jing);
1043
//                intent.putExtra("POI_wei", poi_wei);
1044
//                intent.putExtra("fast_num", et_fast_num.getText().toString());
1045
//                intent.putExtra("slow_num", et_slow_num.getText().toString());
1046
//                intent.putExtra("suit_car", tv_suit_car.getText().toString());
1047
//                intent.putExtra("belong_attribute", tv_belong_type.getText().toString());
1048
//                intent.putExtra("telephone", et_phone.getText().toString());
1049
//                intent.putExtra("Person_name", et_belong.getText().toString());
1050
//                intent.putExtra("company_name", et_belong.getText().toString());
1051
//                intent.putExtra("open_time", open_time.getText().toString());
1052
//                intent.putExtra("zhan_name", et_name.getText().toString());
1053
//                intent.putExtra("close_time", close_time.getText().toString());
1054
//                intent.putExtra("holiday_open", holiday_open.getText().toString());
1055
//                intent.putExtra("holiday_close", holiday_close.getText().toString());
1056
//                intent.putExtra("open_object", et_open_object.getText().toString());
1057
//                intent.putExtra("run_state", tv_run_state.getText().toString());
1058
//                intent.putExtra("pic", srcPath);
1059
//                intent.putExtra("city", city);
1060
//                if (checkText()) {
1061
//                    startActivity(intent);
1062
//                }
1063
//                break;
1064
            case R.id.iv_back:
669
            case R.id.iv_back:
1065
                SharedPreferencesUtil sharedPreferencesUtil = new SharedPreferencesUtil(getApplication());
670
                SharedPreferencesUtil sharedPreferencesUtil = new SharedPreferencesUtil(getApplication());
1066
                sharedPreferencesUtil.setFileName("shareInfo");
671
                sharedPreferencesUtil.setFileName("shareInfo");
1067
                sharedPreferencesUtil.clearData();
672
                sharedPreferencesUtil.clearData();
1068
                finish();
673
                finish();
1069
                break;
674
                break;
1070
//            case R.id.iv_run_state:
1071
//                final String[] operationSelect = {"正常", "故障", "废弃", "调试"};
1072
//                new AlertDialog.Builder(ShareTwoActivity.this)
1073
//                        .setTitle("请选择")
1074
//                        .setItems(operationSelect, new DialogInterface.OnClickListener() {
1075
//                            @Override
1076
//                            public void onClick(DialogInterface dialog, int which) {
1077
//                                switch (which) {
1078
//                                    case 0:
1079
//                                        tv_run_state.setText(operationSelect[0]);
1080
//                                        break;
1081
//                                    case 1:
1082
//                                        tv_run_state.setText(operationSelect[1]);
1083
//                                        break;
1084
//                                    case 2:
1085
//                                        tv_run_state.setText(operationSelect[2]);
1086
//                                        break;
1087
//                                    case 3:
1088
//                                        tv_run_state.setText(operationSelect[3]);
1089
//                                    default:
1090
//                                        break;
1091
//                                }
1092
//                            }
1093
//                        })
1094
//                        .setNegativeButton("取消", new DialogInterface.OnClickListener() {
1095
//                            @Override
1096
//                            public void onClick(DialogInterface dialog, int which) {
1097
//                                dialog.cancel();
1098
//                            }
1099
//                        }).show();
1100
//                break;
1101
//            case R.id.iv_prefect_change_suit:
1102
//
1103
//                String[] changeSelect = {"国标充电", "特斯拉", "德系"};
1104
//                new AlertDialog.Builder(ShareTwoActivity.this)
1105
//                        .setTitle("请选择")
1106
//                        .setItems(changeSelect, new DialogInterface.OnClickListener() {
1107
//                            @Override
1108
//                            public void onClick(DialogInterface dialog, int which) {
1109
//                                switch (which) {
1110
//                                    case 0:
1111
//                                        tv_suit_car.setText("国标充电");
1112
//                                        break;
1113
//                                    case 1:
1114
//                                        tv_suit_car.setText("特斯拉");
1115
//                                        break;
1116
//                                    case 2:
1117
//                                        tv_suit_car.setText("德系");
1118
//                                        break;
1119
//                                    default:
1120
//                                        break;
1121
//                                }
1122
//                            }
1123
//                        })
1124
//                        .setNegativeButton("取消", new DialogInterface.OnClickListener() {
1125
//                            @Override
1126
//                            public void onClick(DialogInterface dialog, int which) {
1127
//                                dialog.cancel();
1128
//                            }
1129
//                        }).show();
1130
//                break;
1131
//            case R.id.rl_perfect_belong:
1132
//                final String[] belongSelect = {"企业", "私人"};
1133
//                new AlertDialog.Builder(ShareTwoActivity.this)
1134
//                        .setTitle("请选择")
1135
//                        .setItems(belongSelect, new DialogInterface.OnClickListener() {
1136
//                            @Override
1137
//                            public void onClick(DialogInterface dialog, int which) {
1138
//                                switch (which) {
1139
//                                    case 0:
1140
//                                        tv_belong_type.setText(belongSelect[0]);
1141
//                                        break;
1142
//                                    case 1:
1143
//                                        tv_belong_type.setText(belongSelect[1]);
1144
////                                        tv_belong_style.setText("联系人");
1145
////                                        et_belong.setText("王先生");
1146
//                                        break;
1147
//                                    default:
1148
//                                        break;
1149
//                                }
1150
//                            }
1151
//                        })
1152
//                        .setNegativeButton("取消", new DialogInterface.OnClickListener() {
1153
//                            @Override
1154
//                            public void onClick(DialogInterface dialog, int which) {
1155
//                                dialog.cancel();
1156
//                            }
1157
//                        }).show();
1158
//                LayoutInflater inflater2 = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
1159
//                popupWindowView = inflater2.inflate(R.layout.popupwindow_belong, null);
1160
//                popupWindow = new PopupWindow(popupWindowView,
1161
//                        ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT,
1162
//                        true);
1163
//                popupWindow.setBackgroundDrawable(new BitmapDrawable());
1164
//                // 设置PopupWindow的弹出和消失效果
1165
//                popupWindow.setAnimationStyle(R.style.popupAnimation);
1166
//                confirmButton = (Button) popupWindowView
1167
//                        .findViewById(R.id.confirmButton);
1168
//                confirmButton.setOnClickListener(new View.OnClickListener() {
1169
//                    @Override
1170
//                    public void onClick(View view) {
1171
//                        Toast.makeText(ShareTwoActivity.this, "YES", Toast.LENGTH_SHORT).show();
1172
//                        popupWindow.dismiss();
1173
//                    }
1174
//                });
1175
//                cancleButton = (Button) popupWindowView
1176
//                        .findViewById(R.id.cancleButton);
1177
//                cancleButton.setOnClickListener(new View.OnClickListener() {
1178
//                    @Override
1179
//                    public void onClick(View view) {
1180
////                        Toast.makeText(ShareTwoActivity.this, "NO", Toast.LENGTH_SHORT).show();
1181
//                        popupWindow.dismiss();
1182
//                    }
1183
//                });
1184
//                TextView tvOne2 = (TextView) popupWindowView.findViewById(R.id.tvOne);
1185
//                tvOne2.setOnClickListener(new View.OnClickListener() {
1186
//                    @Override
1187
//                    public void onClick(View view) {
1188
//                        tv_belong_type.setText("企业");
1189
//                        popupWindow.dismiss();
1190
//                    }
1191
//                });
1192
//                TextView tvTwo2 = (TextView) popupWindowView.findViewById(R.id.tvTwo);
1193
//                tvTwo2.setOnClickListener(new View.OnClickListener() {
1194
//                    @Override
1195
//                    public void onClick(View view) {
1196
//                        tv_belong_type.setText("私人");
1197
//                        popupWindow.dismiss();
1198
//                    }
1199
//                });
1200
//                popupWindow.showAtLocation(cancleButton, Gravity.CENTER, 0, 0);
1201
//                break;
1202
//            case R.id.tv_submit:
1203
//                if (!et_serviceCost.getText().toString().equals("")&& Bimp.tempSelectBitmap.size() != 0) {
1204
//                    createDialog();
1205
//                    new Thread(new Runnable() {
1206
//                        @Override
1207
//                        public void run() {
1208
////                       submitShareTwo();
1209
//
1210
//                            try {
1211
//
1212
//                                    shite("");
1213
//
1214
//
1215
//                            } catch (Exception e) {
1216
//                                e.printStackTrace();
1217
//                            }
1218
//
1219
////                    uploadFile();
1220
//                        }
1221
//                    }).start();
1222
//                }else if (Bimp.tempSelectBitmap.size() == 0){
1223
//                    Toast.makeText(getApplication(),"请提交站点照片",Toast.LENGTH_SHORT).show();
1224
//                } else{
1225
//                    Toast.makeText(ClaimSurveyTwoActivity.this,"请确认必填项是否全部填写",Toast.LENGTH_SHORT).show();
1226
//                }
1227
//                break;
1228
1229
//            case R.id.zoomin1:
1230
//                mBaiduMap.setMapStatus(MapStatusUpdateFactory
1231
//                        .zoomTo(mapStatus.zoom + 1));
1232
//                controlZoomShow();
1233
//                break;
1234
//            case R.id.zoomout1:
1235
//                mBaiduMap.setMapStatus(MapStatusUpdateFactory
1236
//                        .zoomTo(mapStatus.zoom - 1));
1237
//                controlZoomShow();
1238
//                break;
1239
1240
        }
675
        }
1241
1242
//        mapStatus = mBaiduMap.getMapStatus();
1243
1244
1245
    }
676
    }
1246
677
1247
678
1256
687
1257
    }
688
    }
1258
689
1259
    //地图缩放方法
1260
//    private void controlZoomShow() {
1261
//        float zoom = mBaiduMap.getMapStatus().zoom;
1262
//        try {
1263
//            if (zoom >= maxZoomLevel) {
1264
//                inBtn.setImageResource(R.drawable.icon_nojia2_0);
1265
//                inBtn.setEnabled(false);
1266
////                Toast.makeText(getApplication(), "已放大到最大级别", Toast.LENGTH_SHORT)
1267
////                        .show();
1268
//                return;
1269
//            } else {
1270
//                inBtn.setImageResource(R.drawable.icon_jia2_0);
1271
//                inBtn.setEnabled(true);
1272
//            }
1273
//
1274
//            if (zoom <= minZoomLevel) {
1275
//                outBtn.setImageResource(R.drawable.icon_nojian2_0);
1276
//                outBtn.setEnabled(false);
1277
////                Toast.makeText(getApplication(), "已缩小到最小级别", Toast.LENGTH_SHORT)
1278
////                        .show();
1279
//                return;
1280
//            } else {
1281
//                outBtn.setImageResource(R.drawable.icon_jian2_0);
1282
//                outBtn.setEnabled(true);
1283
//            }
1284
//        } catch (Exception e) {
1285
//            e.printStackTrace();
1286
//        }
1287
//
1288
//    }
1289
1290
//    public void getPoint() {
1291
//        if (!isGetData) {
1292
//            isGetData = true;
1293
//            new Handler().postDelayed(new Runnable() {
1294
//
1295
//                @Override
1296
//                public void run() {
1297
//                    MyLocationData locCenter = mBaiduMap.getLocationData();
1298
//                    if (locCenter != null) {
1299
//                        center = new LatLng(locCenter.latitude,
1300
//                                locCenter.longitude);
1301
//
1302
////                        mBaiduMap.addOverlay(new MarkerOptions().position(center).icon(
1303
////                                BitmapDescriptorFactory
1304
////                                        .fromResource(R.drawable.position_icon)));
1305
//                    } else {
1306
//                        return;
1307
//                    }
1308
////                    Point p1 = new Point(0, 0);
1309
////                    LatLng locLeftTop = mBaiduMap.getProjection()
1310
////                            .fromScreenLocation(p1);
1311
////                    Point p2 = new Point(MainApplication.mScreenWidth, mMapView
1312
////                            .getHeight());
1313
////                    LatLng llRightBottom = mBaiduMap.getProjection()
1314
////                            .fromScreenLocation(p2);
1315
////                    MainMap();
1316
//                }
1317
//            }, 500);
1318
//        }
1319
//    }
1320
1321
//    private void MainMap() {
1322
//        new Thread(new Runnable() {
1323
//            Point p1 = new Point(0,0);
1324
//            LatLng locLeftTop = mBaiduMap.getProjection()
1325
//                    .fromScreenLocation(p1);
1326
//            Point p2 = new Point(MainApplication.mScreenWidth, mMapView
1327
//                    .getHeight());
1328
//            LatLng llRightBottom = mBaiduMap.getProjection()
1329
//                    .fromScreenLocation(p2);
1330
//
1331
//
1332
//            //            GeoPoint centerPoint = mapview.getMapCenter();// 地图中心坐标
1333
////            int tbSpan = mapview.getLatitudeSpan();// 当前纬线的跨度(从地图的上边缘到下边缘)
1334
////            int lrSpan = mapview.getLongitudeSpan();// 当前经度的跨度(从地图的左边缘到地图的右边缘)
1335
////            GeoPoint ltPoint = new GeoPoint(centerPoint.getLatitudeE6() - tbSpan / 2, centerPoint.getLongitudeE6() - lrSpan
1336
////                    / 2);// 左上角坐标
1337
////            GeoPoint rbPoint = new GeoPoint(centerPoint.getLatitudeE6()// 右下角坐标
1338
////                    + tbSpan / 2, centerPoint.getLongitudeE6() + lrSpan / 2);
1339
//            @Override
1340
//            public void run() {
1341
//                String url=MainApplication.url+"/zhannew/basic/web/index.php/zhanlist/getlist?poi_lux="+ locLeftTop.longitude+""+"&poi_luy="+ locLeftTop.latitude+"" +"&poi_rdx="+ llRightBottom.longitude+""+"&poi_rdy="+ llRightBottom.latitude+ ""+"&suit_car2="+MainApplication.userTpye;
1342
//                submitShowMap(url);
1343
//            }
1344
//        }).start();
1345
//
1346
//    }
1347
1348
690
1349
    private void submitShowMap(String sms) {
691
    private void submitShowMap(String sms) {
1350
692
1453
            }
795
            }
1454
796
1455
        }
797
        }
1456
//        String fast = fastNum
1457
798
1458
        par.put("zhan_name", zhanName.getText().toString());
799
        par.put("zhan_name", zhanName.getText().toString());
1459
        par.put("zhan_id", zhan_id);
800
        par.put("zhan_id", zhan_id);
1464
        String weii = roundByScale(Double.parseDouble(wei), 16);
805
        String weii = roundByScale(Double.parseDouble(wei), 16);
1465
        par.put("poi_jing", jingg);
806
        par.put("poi_jing", jingg);
1466
        par.put("poi_wei", weii);
807
        par.put("poi_wei", weii);
1467
//        Log.e("poi_jing",jingg);
1468
//        Log.e("poi_wei",weii);
1469
        par.put("total_num", "");
808
        par.put("total_num", "");
1470
        par.put("fast_num", fastNum.getText().toString());
809
        par.put("fast_num", fastNum.getText().toString());
1471
        par.put("slow_num", slowNum.getText().toString());
810
        par.put("slow_num", slowNum.getText().toString());
1475
        par.put("stop_cost_way", "");
814
        par.put("stop_cost_way", "");
1476
        par.put("charge_cost", chargeCost.getText().toString());
815
        par.put("charge_cost", chargeCost.getText().toString());
1477
        par.put("charge_cost_way", "");
816
        par.put("charge_cost_way", "");
817
        par.put("telephone", telephone.getText().toString());
818
        par.put("charge_cost_way", chargeCostWay.getText().toString());
1478
        par.put("other_cost", et_serviceCost.getText().toString());
819
        par.put("other_cost", et_serviceCost.getText().toString());
1479
        par.put("telephone", "");
1480
        par.put("zhuang_produce", "");
820
        par.put("zhuang_produce", "");
1481
        par.put("remarks", et_remark.getText().toString());
821
        par.put("remarks", et_remark.getText().toString());
1482
        Log.e("remarks", et_remark.getText().toString());
822
        Log.e("remarks", et_remark.getText().toString());
1536
    public void permissionTask() {
876
    public void permissionTask() {
1537
        if (isPermissionOK()) {
877
        if (isPermissionOK()) {
1538
            callGallery();
878
            callGallery();
1539
            // Have permission, do the thing!
1540
//            Toast.makeText(this, "TODO: Camera things", Toast.LENGTH_LONG).show();
1541
//            ifTimeout();
1542
        } else {
879
        } else {
1543
            // Ask for one permission
880
            // Ask for one permission
1544
            EasyPermissions.requestPermissions(
881
            EasyPermissions.requestPermissions(
1681
    private static final int TAKE_PICTURE = 0x000001;
1018
    private static final int TAKE_PICTURE = 0x000001;
1682
1019
1683
    public void photo() {
1020
    public void photo() {
1684
//		Intent openCameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
1685
//		startActivityForResult(openCameraIntent, TAKE_PICTURE);
1686
//        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
1687
//        File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/myimage/", String.valueOf(System
1688
//                .currentTimeMillis()) + ".jpg");
1689
//        camePath = file.getPath();
1690
//        Uri imageUri = Uri.fromFile(file);
1691
//        intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
1692
//        startActivityForResult(intent, TAKE_PICTURE);
1693
1694
        if (hasSdcard()) {
1021
        if (hasSdcard()) {
1695
1696
            Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);//���������
1697
            if (sdkVersion < 19) {
1698
                intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(tempFile));
1699
            } else {
1700
                Uri photoURI = FileProvider.getUriForFile(getApplicationContext(), getApplicationContext().getPackageName() + ".provider", tempFile);
1701
                intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
1702
            }
1703
1704
//            intent.putExtra(MediaStore.EXTRA_OUTPUT, cutImgUri);
1022
            Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
1023
            Uri photoURI = FileProvider.getUriForFile(getApplicationContext(), getApplicationContext().getPackageName() + ".provider", tempFile);
1024
            intent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
1705
            startActivityForResult(intent, PHOTO_REQUEST_CAMERA);
1025
            startActivityForResult(intent, PHOTO_REQUEST_CAMERA);
1706
        }
1026
        }
1707
1708
//        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
1709
//        intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(
1710
//                Environment.getExternalStorageDirectory(), "androidapp.jpg")));
1711
//        ((Activity) mContext).startActivityForResult(intent, 2);
1712
    }
1027
    }
1713
1028
1714
//    public void photo() {
1715
//        Intent openCameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
1716
//        startActivityForResult(openCameraIntent, TAKE_PICTURE);
1717
////        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
1718
////        File file = new File(Environment.getExternalStorageDirectory() + "/myimage/", String.valueOf(System
1719
////                .currentTimeMillis()) + ".jpg");
1720
////        camePath = file.getPath();
1721
////        Uri imageUri = Uri.fromFile(file);
1722
////        intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
1723
////        startActivityForResult(intent, TAKE_PICTURE);
1724
//    }
1725
1726
//    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
1727
//        System.out.println("--------data------->"+data);
1728
//        //���ѡȡ
1729
//        if(requestCode == PHOTO_REQUEST_CAMERA && resultCode == Activity.RESULT_OK ){
1730
//            //��������ͼƬ�ͽ�ȡ���ͼƬ�ļ���д����ͬһ���ļ���photo.jpg
1731
//
1732
//
1733
//            new Handler().post(new Runnable() {
1734
//                @Override
1735
//                public void run() {
1736
//                    if (sdkVersion < 19){
1737
//                        crop(Uri.fromFile(tempFile),Uri.fromFile(tempFile));
1738
//                    }else {
1739
//                        Uri photoURI = FileProvider.getUriForFile(getApplicationContext(), getApplicationContext().getPackageName() + ".provider", tempFile);
1740
//                        crop(photoURI,photoURI);
1741
//                    }
1742
//                }
1743
//            });
1744
//
1745
//
1746
//
1747
//        }
1748
//        //���ؽ�ȡ��ͼƬ
1749
//        else if(requestCode == PHOTO_REQUEST_CUT ){
1750
//            //���д�ͼʹ��Uri
1751
//            Bitmap bitmap ;
1752
//
1753
//            if (sdkVersion <19){
1754
//                bitmap = decodeUriAsBitmap(Uri.fromFile(tempFile));//decode bitmap
1755
//            }else {
1756
//                Uri photoURI = FileProvider.getUriForFile(getApplicationContext(), getApplicationContext().getPackageName() + ".provider", tempFile);
1757
//                bitmap = decodeUriAsBitmap(photoURI);//decode bitmap
1758
//            }
1759
//
1760
////            mFace.setImageBitmap(bitmap);
1761
//            String fileName = String.valueOf(System.currentTimeMillis());
1762
//            ImageItem takePhoto = new ImageItem();
1763
//                    takePhoto.setBitmap(bitmap);
1764
//                    takePhoto.setImagePath(FileUtils.SDPATH + fileName + ".JPEG");
1765
//                    Bimp.tempSelectBitmap.add(takePhoto);
1766
//        }else {
1767
////            Toast.makeText(getApplicationContext(), "��ȡͼƬʧ��", Toast.LENGTH_SHORT).show();
1768
//        }
1769
//        super.onActivityResult(requestCode, resultCode, data);
1770
//    }
1771
1772
1029
1773
    @Override
1030
    @Override
1774
    protected void onDestroy() {
1031
    protected void onDestroy() {
1794
1051
1795
1052
1796
    private void crop(Uri uri, Uri cutImgUri) {
1053
    private void crop(Uri uri, Uri cutImgUri) {
1797
        // �ü�ͼƬ��ͼ
1798
        Intent intent = new Intent("com.android.camera.action.CROP");
1054
        Intent intent = new Intent("com.android.camera.action.CROP");
1799
        intent.setDataAndType(uri, "image/*");
1055
        intent.setDataAndType(uri, "image/*");
1800
        intent.putExtra("crop", "true");
1056
        intent.putExtra("crop", "true");
1801
        // �ü���ı�����1��1
1802
//        intent.putExtra("aspectX", 4);
1803
//        intent.putExtra("aspectY", 3);
1804
        // �ü������ͼƬ�ijߴ��С
1805
//        intent.putExtra("outputX", 400);
1806
//        intent.putExtra("outputY", 300);
1807
1808
        // ͼƬ��ʽ
1809
        intent.putExtra("outputFormat", "JPEG");
1057
        intent.putExtra("outputFormat", "JPEG");
1810
        intent.putExtra("noFaceDetection", true);// ȡ������ʶ��
1811
        intent.putExtra("return-data", false);// true:������uri��false������uri
1812
        intent.putExtra(MediaStore.EXTRA_OUTPUT, cutImgUri);//д���ȡ��ͼƬ
1058
        intent.putExtra("noFaceDetection", true);
1059
        intent.putExtra("return-data", false);
1060
        intent.putExtra(MediaStore.EXTRA_OUTPUT, cutImgUri);
1813
        startActivityForResult(intent, PHOTO_REQUEST_CUT);
1061
        startActivityForResult(intent, PHOTO_REQUEST_CUT);
1814
    }
1062
    }
1815
1063
1894
        matrix.postScale(scaleWidth, scaleHeight);
1142
        matrix.postScale(scaleWidth, scaleHeight);
1895
        Bitmap bitmap = Bitmap.createBitmap(bgimage, 0, 0, (int) width,
1143
        Bitmap bitmap = Bitmap.createBitmap(bgimage, 0, 0, (int) width,
1896
                (int) height, matrix, true);
1144
                (int) height, matrix, true);
1897
//        iv_2.setImageBitmap(bitmap);
1898
//        tv_2.setText(bitmap.getRowBytes() * bitmap.getHeight() + "");
1899
        return bitmap;
1145
        return bitmap;
1900
    }
1146
    }
1901
1147
1909
1155
1910
        jing = sharedPreferencesUtil.getString("poi_jing", "");
1156
        jing = sharedPreferencesUtil.getString("poi_jing", "");
1911
        wei = sharedPreferencesUtil.getString("poi_wei", "");
1157
        wei = sharedPreferencesUtil.getString("poi_wei", "");
1912
//        String tel =sharedPreferencesUtil.getString("tel", "");
1913
////        String car =sharedPreferencesUtil.getString("car", "");
1914
//        String alipay =sharedPreferencesUtil.getString("alipay", "");
1915
//        carType.setText(car);
1916
        et_share_address.setText(address);
1158
        et_share_address.setText(address);
1917
        costWay.setText(costway);
1159
        costWay.setText(costway);
1918
    }
1160
    }

+ 1 - 0
app/src/main/res/layout/activity_charge_cost_way.xml

1069
                android:textColorHint="@color/ui_68"
1069
                android:textColorHint="@color/ui_68"
1070
                android:textColor="@color/ui_62"
1070
                android:textColor="@color/ui_62"
1071
                android:textSize="14sp"
1071
                android:textSize="14sp"
1072
                android:layout_marginBottom="40px"
1072
                android:paddingLeft="44px" />
1073
                android:paddingLeft="44px" />
1073
1074
1074
        </com.zhy.autolayout.AutoLinearLayout>
1075
        </com.zhy.autolayout.AutoLinearLayout>

+ 330 - 294
app/src/main/res/layout/activity_share_two.xml

1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<com.zhy.autolayout.AutoRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
<com.zhy.autolayout.AutoRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:id="@+id/claim"
3
    android:layout_width="match_parent"
4
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:layout_height="match_parent"
5
    android:focusable="true"
6
    android:focusableInTouchMode="true"
7
    android:id="@+id/claim"
8
    android:background="@color/activity_bgcolor"
6
    android:background="@color/activity_bgcolor"
9
    >
7
    android:focusable="true"
8
    android:focusableInTouchMode="true">
10

9

11
    <com.zhy.autolayout.AutoRelativeLayout
10
    <com.zhy.autolayout.AutoRelativeLayout
12
        android:id="@+id/rl_title"
11
        android:id="@+id/rl_title"
13
        android:layout_width="fill_parent"
12
        android:layout_width="fill_parent"
14
        android:layout_height="130px"
13
        android:layout_height="130px"
15
        android:background="@color/title_background"
16
        android:layout_alignParentTop="true">
14
        android:layout_alignParentTop="true"
15
        android:background="@color/title_background">
17

16

18
        <ImageView
17
        <ImageView
19
            android:id="@+id/iv_back"
18
            android:id="@+id/iv_back"
41
            android:layout_height="match_parent"
40
            android:layout_height="match_parent"
42
            android:layout_alignParentRight="true"
41
            android:layout_alignParentRight="true"
43
            android:layout_centerInParent="true"
42
            android:layout_centerInParent="true"
44
            android:paddingRight="44px"
45
            android:gravity="center"
43
            android:gravity="center"
44
            android:paddingRight="44px"
46
            android:text="添加记录"
45
            android:text="添加记录"
47
            android:textSize="15sp"
48
            android:textColor="@color/lvse"
46
            android:textColor="@color/lvse"
49
            android:visibility="visible"/>
47
            android:textSize="15sp"
48
            android:visibility="visible" />
50
    </com.zhy.autolayout.AutoRelativeLayout>
49
    </com.zhy.autolayout.AutoRelativeLayout>
51

50

52
    <View
51
    <View
53
        android:layout_width="match_parent"
52
        android:layout_width="match_parent"
54
        android:layout_height="0.5dp"
53
        android:layout_height="0.5dp"
55
        android:background="@color/ui_titleline"
54
        android:background="@color/ui_titleline"
56
        android:visibility="gone"/>
55
        android:visibility="gone" />
57

56

58
    <RelativeLayout
57
    <RelativeLayout
59
        android:id="@+id/tv_notice"
58
        android:id="@+id/tv_notice"
60
        android:layout_width="match_parent"
59
        android:layout_width="match_parent"
61
        android:layout_height="38dp"
60
        android:layout_height="38dp"
62
        android:orientation="horizontal"
63
        android:background="@drawable/bg_notice1105"
61
        android:background="@drawable/bg_notice1105"
62
        android:orientation="horizontal"
64
        android:visibility="gone">
63
        android:visibility="gone">
64

65
        <TextView
65
        <TextView
66
            android:layout_width="wrap_content"
66
            android:layout_width="wrap_content"
67
            android:layout_height="wrap_content"
67
            android:layout_height="wrap_content"
68
            android:text="轻点地图即可选取位置,添加未被收录的站点"
69
            android:textSize="14sp"
68
            android:layout_centerHorizontal="true"
69
            android:layout_centerVertical="true"
70
            android:layout_gravity="center_horizontal"
70
            android:layout_gravity="center_horizontal"
71
            android:textColor="#099234"
72
            android:drawableRight="@drawable/icon_close1105"
71
            android:drawableRight="@drawable/icon_close1105"
73
            android:drawablePadding="16dp"
72
            android:drawablePadding="16dp"
74
            android:layout_centerVertical="true"
75
            android:layout_centerHorizontal="true" />
73
            android:text="轻点地图即可选取位置,添加未被收录的站点"
74
            android:textColor="#099234"
75
            android:textSize="14sp" />
76

76

77

77

78
    </RelativeLayout>
78
    </RelativeLayout>
85

85

86

86

87
        <ImageView
87
        <ImageView
88
            android:id="@+id/ib_location"
88
            android:layout_width="wrap_content"
89
            android:layout_width="wrap_content"
89
            android:layout_height="wrap_content"
90
            android:layout_height="wrap_content"
90
            android:id="@+id/ib_location"
91
            android:layout_marginBottom="32dp"
92
            android:background="@drawable/icon_location2_0"
93
            android:layout_marginLeft="8dp"
94
            android:layout_marginStart="8dp"
95
            android:layout_alignParentBottom="true"
91
            android:layout_alignParentStart="true"
96
            android:layout_alignParentLeft="true"
92
            android:layout_alignParentLeft="true"
97
            android:layout_alignParentStart="true" />
93
            android:layout_alignParentBottom="true"
94
            android:layout_marginStart="8dp"
95
            android:layout_marginLeft="8dp"
96
            android:layout_marginBottom="32dp"
97
            android:background="@drawable/icon_location2_0" />
98

98

99
        <LinearLayout
99
        <LinearLayout
100
            android:id="@+id/zoom_in_out"
100
            android:id="@+id/zoom_in_out"
101
            android:layout_width="wrap_content"
101
            android:layout_width="wrap_content"
102
            android:layout_height="wrap_content"
102
            android:layout_height="wrap_content"
103
            android:layout_marginRight="8dp"
104
            android:background="@color/transparent"
105
            android:orientation="vertical"
106
            android:layout_alignBottom="@+id/iv_point_again"
103
            android:layout_alignBottom="@+id/iv_point_again"
107
            android:layout_alignParentRight="true"
108
            android:layout_alignParentEnd="true"
104
            android:layout_alignParentEnd="true"
105
            android:layout_alignParentRight="true"
109
            android:layout_alignParentBottom="true"
106
            android:layout_alignParentBottom="true"
110
            android:layout_marginEnd="8dp"
107
            android:layout_marginEnd="8dp"
111
            android:layout_marginBottom="32dp">
108
            android:layout_marginRight="8dp"
109
            android:layout_marginBottom="32dp"
110
            android:background="@color/transparent"
111
            android:orientation="vertical">
112

112

113
            <ImageView
113
            <ImageView
114
                android:id="@+id/zoomin1"
114
                android:id="@+id/zoomin1"
115
                android:layout_width="wrap_content"
115
                android:layout_width="wrap_content"
116
                android:layout_height="wrap_content"
116
                android:layout_height="wrap_content"
117
                android:contentDescription="@null"
117
                android:contentDescription="@null"
118
                android:src="@drawable/icon_jia2_0"/>
118
                android:src="@drawable/icon_jia2_0" />
119
            <!--android:background="@color/white"-->
119
            <!--android:background="@color/white"-->
120

120

121

121

122

123
            <ImageView
122
            <ImageView
124
                android:id="@+id/zoomout1"
123
                android:id="@+id/zoomout1"
125
                android:layout_width="wrap_content"
124
                android:layout_width="wrap_content"
126
                android:layout_height="wrap_content"
125
                android:layout_height="wrap_content"
127
                android:contentDescription="@null"
126
                android:contentDescription="@null"
128
                android:src="@drawable/icon_jian2_0"/>
127
                android:src="@drawable/icon_jian2_0" />
129
            <!--android:background="@color/white"-->
128
            <!--android:background="@color/white"-->
130
        </LinearLayout>
129
        </LinearLayout>
131

130

132

131

133
    </RelativeLayout>
132
    </RelativeLayout>
133

134
    <View
134
    <View
135
        android:id="@+id/view_title"
135
        android:id="@+id/view_title"
136
        android:layout_width="match_parent"
136
        android:layout_width="match_parent"
137
        android:layout_height="0.5dp"
137
        android:layout_height="0.5dp"
138
        android:background="@color/ui_titleline"
139
        android:layout_below="@+id/rl_title"/>
138
        android:layout_below="@+id/rl_title"
139
        android:background="@color/ui_titleline" />
140

140

141

141

142
    <ScrollView
142
    <ScrollView
143
        android:layout_width="match_parent"
143
        android:layout_width="match_parent"
144
        android:layout_height="match_parent"
144
        android:layout_height="match_parent"
145
        android:layout_below="@+id/view_title"
146
        android:layout_above="@+id/share_next">
145
        android:layout_above="@+id/share_next"
146
        android:layout_below="@+id/view_title">
147

147

148
        <com.zhy.autolayout.AutoLinearLayout
148
        <com.zhy.autolayout.AutoLinearLayout
149
            android:layout_width="match_parent"
149
            android:layout_width="match_parent"
155
                android:id="@+id/ll_add_photo"
155
                android:id="@+id/ll_add_photo"
156
                android:layout_width="match_parent"
156
                android:layout_width="match_parent"
157
                android:layout_height="wrap_content"
157
                android:layout_height="wrap_content"
158
                android:background="@color/bg_row"
158
                android:orientation="vertical"
159
                android:orientation="vertical"
159
                android:visibility="visible"
160
                android:background="@color/bg_row">
160
                android:visibility="visible">
161

161
                <TextView
162
                <TextView
162
                    android:layout_width="wrap_content"
163
                    android:layout_width="wrap_content"
163
                    android:layout_height="wrap_content"
164
                    android:layout_height="wrap_content"
164
                    android:textColor="@color/title_row"
165
                    android:layout_gravity="center_vertical"
166
                    android:layout_marginLeft="16dp"
167
                    android:layout_marginTop="8dp"
165
                    android:text="请上传充电站照片"
168
                    android:text="请上传充电站照片"
169
                    android:textColor="@color/title_row"
166
                    android:textSize="16sp"
170
                    android:textSize="16sp"
167
                    android:visibility="gone"
168
                    android:layout_marginTop="8dp"
169
                    android:layout_marginLeft="16dp"
170
                    android:layout_gravity="center_vertical"/>
171
                    android:visibility="gone" />
171

172

172
                <GridView
173
                <GridView
173
                    android:id="@+id/noScrollgridview"
174
                    android:id="@+id/noScrollgridview"
179
                    android:horizontalSpacing="3dp"
180
                    android:horizontalSpacing="3dp"
180
                    android:numColumns="4"
181
                    android:numColumns="4"
181
                    android:scrollbars="none"
182
                    android:scrollbars="none"
182
                    android:verticalSpacing="5dp" >
183
                </GridView>
183
                    android:verticalSpacing="5dp"></GridView>
184

184

185
                <RelativeLayout
185
                <RelativeLayout
186
                    android:layout_width="match_parent"
186
                    android:layout_width="match_parent"
187
                    android:layout_height="wrap_content"
187
                    android:layout_height="wrap_content"
188
                    android:layout_marginTop="8dp"
189
                    android:layout_marginBottom="8dp"
190
                    android:layout_marginLeft="44px"
188
                    android:layout_marginLeft="44px"
191
                    android:layout_marginRight="44px">
189
                    android:layout_marginTop="8dp"
190
                    android:layout_marginRight="44px"
191
                    android:layout_marginBottom="8dp">
192

192

193
                    <TextView
193
                    <TextView
194
                        android:layout_width="wrap_content"
194
                        android:layout_width="wrap_content"
195
                        android:layout_height="wrap_content"
195
                        android:layout_height="wrap_content"
196
                        android:text="照片规范:增加通过几率哦~"
197
                        android:layout_centerVertical="true"
198
                        android:layout_alignParentLeft="true"
196
                        android:layout_alignParentLeft="true"
197
                        android:layout_centerVertical="true"
198
                        android:text="照片规范:增加通过几率哦~"
199
                        android:textColor="@color/ui_68"
199
                        android:textColor="@color/ui_68"
200
                        android:textSize="12sp" />
200
                        android:textSize="12sp" />
201

201

203
                        android:id="@+id/iv_chakan"
203
                        android:id="@+id/iv_chakan"
204
                        android:layout_width="wrap_content"
204
                        android:layout_width="wrap_content"
205
                        android:layout_height="wrap_content"
205
                        android:layout_height="wrap_content"
206
                        android:src="@drawable/icon_chakan"
206
                        android:layout_alignParentRight="true"
207
                        android:layout_gravity="center"
207
                        android:layout_gravity="center"
208
                        android:layout_alignParentRight="true"/>
208
                        android:src="@drawable/icon_chakan" />
209

209

210
                </RelativeLayout>
210
                </RelativeLayout>
211

211

227
                <TextView
227
                <TextView
228
                    android:layout_width="wrap_content"
228
                    android:layout_width="wrap_content"
229
                    android:layout_height="wrap_content"
229
                    android:layout_height="wrap_content"
230
                    android:text="*"
231
                    android:textSize="15sp"
230
                    android:layout_centerInParent="true"
232
                    android:layout_marginLeft="44px"
231
                    android:layout_marginLeft="44px"
233
                    android:layout_marginRight="8px"
232
                    android:layout_marginRight="8px"
234
                    android:layout_centerInParent="true"
235
                    android:textColor="@color/xinghao"/>
233
                    android:text="*"
234
                    android:textColor="@color/xinghao"
235
                    android:textSize="15sp" />
236

236

237
                <TextView
237
                <TextView
238
                    android:layout_width="wrap_content"
238
                    android:layout_width="wrap_content"
246
                    android:layout_width="0dp"
246
                    android:layout_width="0dp"
247
                    android:layout_height="match_parent"
247
                    android:layout_height="match_parent"
248
                    android:layout_marginLeft="10dp"
248
                    android:layout_marginLeft="10dp"
249
                    android:layout_marginRight="44px"
249
                    android:layout_weight="5"
250
                    android:layout_weight="5"
250
                    android:background="@color/white"
251
                    android:background="@color/white"
251
                    android:layout_marginRight="44px"
252
                    android:editable="true"
252
                    android:editable="true"
253
                    android:singleLine="true"
254
                    android:gravity="center|right"
253
                    android:gravity="center|right"
255
                    android:hint="请以地名或建筑命名"
254
                    android:hint="请以地名或建筑命名"
255
                    android:singleLine="true"
256
                    android:text=""
256
                    android:text=""
257
                    android:textColor="@color/ui_62"
257
                    android:textColor="@color/ui_62"
258
                    android:textColorHint="@color/ui_68"
258
                    android:textColorHint="@color/ui_68"
275
                android:orientation="horizontal">
275
                android:orientation="horizontal">
276

276

277
                <TextView
277
                <TextView
278
                    android:id="@+id/textView25"
278
                    android:layout_width="wrap_content"
279
                    android:layout_width="wrap_content"
279
                    android:layout_height="wrap_content"
280
                    android:layout_height="wrap_content"
280
                    android:text="*"
281
                    android:textSize="15sp"
281
                    android:layout_alignParentStart="true"
282
                    android:layout_alignParentLeft="true"
283
                    android:layout_centerInParent="true"
282
                    android:layout_marginLeft="44px"
284
                    android:layout_marginLeft="44px"
283
                    android:layout_marginRight="8px"
285
                    android:layout_marginRight="8px"
286
                    android:text="*"
284
                    android:textColor="@color/xinghao"
287
                    android:textColor="@color/xinghao"
285
                    android:id="@+id/textView25"
286
                    android:layout_centerInParent="true"
287
                    android:layout_alignParentLeft="true"
288
                    android:layout_alignParentStart="true" />
288
                    android:textSize="15sp" />
289

289

290
                <TextView
290
                <TextView
291
                    android:id="@+id/address"
291
                    android:id="@+id/address"
292
                    android:layout_width="wrap_content"
292
                    android:layout_width="wrap_content"
293
                    android:layout_height="match_parent"
293
                    android:layout_height="match_parent"
294
                    android:layout_alignParentTop="true"
295
                    android:layout_toEndOf="@+id/textView25"
296
                    android:layout_toRightOf="@+id/textView25"
294
                    android:gravity="center"
297
                    android:gravity="center"
295
                    android:text="站地址"
298
                    android:text="站地址"
296
                    android:textColor="@color/ui_65"
299
                    android:textColor="@color/ui_65"
297
                    android:textSize="15sp"
298
                    android:layout_alignParentTop="true"
299
                    android:layout_toRightOf="@+id/textView25"
300
                    android:layout_toEndOf="@+id/textView25" />
300
                    android:textSize="15sp" />
301

301

302

302

303
                <TextView
303
                <TextView
305
                    style="?android:attr/textViewStyle"
305
                    style="?android:attr/textViewStyle"
306
                    android:layout_width="match_parent"
306
                    android:layout_width="match_parent"
307
                    android:layout_height="match_parent"
307
                    android:layout_height="match_parent"
308
                    android:layout_alignParentTop="true"
309
                    android:layout_alignParentEnd="true"
310
                    android:layout_alignParentRight="true"
311
                    android:layout_marginLeft="30px"
312
                    android:layout_marginEnd="16dp"
313
                    android:layout_marginRight="44px"
314
                    android:layout_toRightOf="@+id/address"
308
                    android:background="@null"
315
                    android:background="@null"
316
                    android:drawableRight="@drawable/icon_select"
317
                    android:drawablePadding="20px"
318
                    android:ellipsize="end"
309
                    android:gravity="center|right"
319
                    android:gravity="center|right"
310
                    android:hint="请选择"
320
                    android:hint="请选择"
321
                    android:singleLine="true"
311
                    android:text=""
322
                    android:text=""
312
                    android:layout_toRightOf="@+id/address"
313
                    android:drawableRight="@drawable/icon_select"
314
                    android:drawablePadding="20px"
315
                    android:layout_marginRight="44px"
316
                    android:layout_marginLeft="30px"
317
                    android:textColor="@color/ui_62"
323
                    android:textColor="@color/ui_62"
318
                    android:textColorHint="@color/ui_68"
324
                    android:textColorHint="@color/ui_68"
319
                    android:textSize="15sp"
320
                    android:singleLine="true"
321
                    android:ellipsize="end"
322
                    android:layout_alignParentTop="true"
323
                    android:layout_alignParentRight="true"
324
                    android:layout_alignParentEnd="true"
325
                    android:layout_marginEnd="16dp" />
325
                    android:textSize="15sp" />
326

326

327

327

328
            </com.zhy.autolayout.AutoRelativeLayout>
328
            </com.zhy.autolayout.AutoRelativeLayout>
340
                android:background="@drawable/click_effect">
340
                android:background="@drawable/click_effect">
341

341

342
                <TextView
342
                <TextView
343
                    android:id="@+id/textView18"
343
                    android:layout_width="wrap_content"
344
                    android:layout_width="wrap_content"
344
                    android:layout_height="wrap_content"
345
                    android:layout_height="wrap_content"
345
                    android:text="*"
346
                    android:textColor="@color/xinghao"
347
                    android:id="@+id/textView18"
348
                    android:textSize="15sp"
349
                    android:layout_marginLeft="44px"
350
                    android:layout_marginRight="8px"
351
                    android:layout_alignTop="@+id/textView19"
346
                    android:layout_alignTop="@+id/textView19"
352
                    android:layout_centerInParent="true"
347
                    android:layout_alignParentStart="true"
353
                    android:layout_alignParentLeft="true"
348
                    android:layout_alignParentLeft="true"
354
                    android:layout_alignParentStart="true" />
349
                    android:layout_centerInParent="true"
350
                    android:layout_marginLeft="44px"
351
                    android:layout_marginRight="8px"
352
                    android:text="*"
353
                    android:textColor="@color/xinghao"
354
                    android:textSize="15sp" />
355

355

356
                <TextView
356
                <TextView
357
                    android:id="@+id/textView19"
357
                    android:layout_width="wrap_content"
358
                    android:layout_width="wrap_content"
358
                    android:layout_height="wrap_content"
359
                    android:layout_height="wrap_content"
359
                    android:text="电桩类型"
360
                    android:layout_gravity="center"
361
                    android:textColor="@color/ui_65"
362
                    android:textSize="15sp"
363
                    android:layout_centerVertical="true"
360
                    android:layout_centerVertical="true"
364
                    android:layout_toRightOf="@+id/textView18"
361
                    android:layout_gravity="center"
365
                    android:layout_toEndOf="@+id/textView18"
362
                    android:layout_toEndOf="@+id/textView18"
366
                    android:id="@+id/textView19" />
363
                    android:layout_toRightOf="@+id/textView18"
364
                    android:text="电桩类型"
365
                    android:textColor="@color/ui_65"
366
                    android:textSize="15sp" />
367

367

368
                <RadioGroup
368
                <RadioGroup
369
                    android:id="@+id/rg_claimtype"
369
                    android:id="@+id/rg_claimtype"
370
                    android:layout_width="wrap_content"
370
                    android:layout_width="wrap_content"
371
                    android:layout_height="wrap_content"
371
                    android:layout_height="wrap_content"
372
                    android:orientation="horizontal"
373
                    android:layout_marginRight="16dp"
374
                    android:layout_centerVertical="true"
375
                    android:layout_alignParentRight="true"
376
                    android:layout_alignParentEnd="true"
372
                    android:layout_alignParentEnd="true"
377
                    android:layout_marginEnd="16dp">
373
                    android:layout_alignParentRight="true"
374
                    android:layout_centerVertical="true"
375
                    android:layout_marginEnd="16dp"
376
                    android:layout_marginRight="16dp"
377
                    android:orientation="horizontal">
378

378

379
                    <RadioButton
379
                    <RadioButton
380
                        android:id="@+id/rb_guo"
380
                        android:id="@+id/rb_guo"
390
                        android:layout_height="wrap_content"
390
                        android:layout_height="wrap_content"
391
                        android:layout_marginLeft="44px"
391
                        android:layout_marginLeft="44px"
392
                        android:background="@drawable/icon_tenormal1105"
392
                        android:background="@drawable/icon_tenormal1105"
393
                        android:button="@null"
394
                        />
393
                        android:button="@null" />
395
                </RadioGroup>
394
                </RadioGroup>
396

395

397
            </com.zhy.autolayout.AutoRelativeLayout>
396
            </com.zhy.autolayout.AutoRelativeLayout>
408
                android:background="@color/bg_row">
407
                android:background="@color/bg_row">
409

408

410
                <TextView
409
                <TextView
410
                    android:id="@+id/textView21"
411
                    android:layout_width="wrap_content"
411
                    android:layout_width="wrap_content"
412
                    android:layout_height="wrap_content"
412
                    android:layout_height="wrap_content"
413
                    android:text="*"
414
                    android:textColor="@color/xinghao"
415
                    android:id="@+id/textView21"
416
                    android:layout_alignTop="@+id/textView22"
413
                    android:layout_alignTop="@+id/textView22"
417
                    android:layout_alignParentLeft="true"
418
                    android:layout_alignParentStart="true"
414
                    android:layout_alignParentStart="true"
415
                    android:layout_alignParentLeft="true"
419
                    android:layout_centerInParent="true"
416
                    android:layout_centerInParent="true"
420
                    android:textSize="15sp"
421
                    android:layout_marginLeft="44px"
417
                    android:layout_marginLeft="44px"
422
                    android:layout_marginRight="8px" />
418
                    android:layout_marginRight="8px"
419
                    android:text="*"
420
                    android:textColor="@color/xinghao"
421
                    android:textSize="15sp" />
423

422

424
                <TextView
423
                <TextView
424
                    android:id="@+id/textView22"
425
                    android:layout_width="wrap_content"
425
                    android:layout_width="wrap_content"
426
                    android:layout_height="wrap_content"
426
                    android:layout_height="wrap_content"
427
                    android:text="数量"
428
                    android:textColor="@color/ui_65"
429
                    android:textSize="15sp"
430
                    android:id="@+id/textView22"
431
                    android:layout_alignTop="@+id/imageView3"
427
                    android:layout_alignTop="@+id/imageView3"
428
                    android:layout_toEndOf="@+id/textView21"
432
                    android:layout_toRightOf="@+id/textView21"
429
                    android:layout_toRightOf="@+id/textView21"
433
                    android:layout_toEndOf="@+id/textView21" />
430
                    android:text="数量"
431
                    android:textColor="@color/ui_65"
432
                    android:textSize="15sp" />
433

434
                <ImageView
434
                <ImageView
435
                    android:id="@+id/imageView3"
435
                    android:layout_width="wrap_content"
436
                    android:layout_width="wrap_content"
436
                    android:layout_height="wrap_content"
437
                    android:layout_height="wrap_content"
437
                    android:src="@drawable/icon_kuai1105"
438
                    android:layout_alignTop="@+id/imageView2"
438
                    android:layout_gravity="center"
439
                    android:layout_gravity="center"
439
                    android:id="@+id/imageView3"
440
                    android:layout_marginRight="20px"
440
                    android:layout_marginRight="20px"
441
                    android:layout_alignTop="@+id/imageView2"
441
                    android:layout_toStartOf="@+id/et_fastNum"
442
                    android:layout_toLeftOf="@+id/et_fastNum"
442
                    android:layout_toLeftOf="@+id/et_fastNum"
443
                    android:layout_toStartOf="@+id/et_fastNum" />
443
                    android:src="@drawable/icon_kuai1105" />
444

444

445
                <EditText
445
                <EditText
446
                    android:id="@+id/et_fastNum"
446
                    android:id="@+id/et_fastNum"
447
                    android:layout_width="wrap_content"
447
                    android:layout_width="wrap_content"
448
                    android:layout_height="match_parent"
448
                    android:layout_height="match_parent"
449
                    android:layout_alignParentTop="true"
450
                    android:layout_marginRight="44px"
451
                    android:layout_toStartOf="@+id/imageView2"
452
                    android:layout_toLeftOf="@+id/imageView2"
449
                    android:layout_weight="1"
453
                    android:layout_weight="1"
450
                    android:inputType="number"
451
                    android:background="@color/white"
454
                    android:background="@color/white"
452
                    android:editable="true"
455
                    android:editable="true"
453
                    android:gravity="center"
456
                    android:gravity="center"
454
                    android:hint="桩数"
457
                    android:hint="桩数"
458
                    android:inputType="number"
455
                    android:text=""
459
                    android:text=""
456
                    android:textColor="@color/ui_62"
460
                    android:textColor="@color/ui_62"
457
                    android:textColorHint="@color/ui_68"
461
                    android:textColorHint="@color/ui_68"
458
                    android:textSize="15sp"
459
                    android:layout_marginRight="44px"
460
                    android:layout_alignParentTop="true"
461
                    android:layout_toLeftOf="@+id/imageView2"
462
                    android:layout_toStartOf="@+id/imageView2" />
462
                    android:textSize="15sp" />
463

463

464
                <ImageView
464
                <ImageView
465
                    android:id="@+id/imageView2"
465
                    android:layout_width="wrap_content"
466
                    android:layout_width="wrap_content"
466
                    android:layout_height="wrap_content"
467
                    android:layout_height="wrap_content"
467
                    android:src="@drawable/icon_man1105"
468
                    android:layout_gravity="center"
469
                    android:layout_centerVertical="true"
468
                    android:layout_centerVertical="true"
469
                    android:layout_gravity="center"
470
                    android:layout_marginRight="20px"
470
                    android:layout_marginRight="20px"
471
                    android:layout_toLeftOf="@+id/et_slowNum"
471
                    android:layout_toLeftOf="@+id/et_slowNum"
472
                    android:id="@+id/imageView2" />
472
                    android:src="@drawable/icon_man1105" />
473

473

474
                <EditText
474
                <EditText
475
                    android:id="@+id/et_slowNum"
475
                    android:id="@+id/et_slowNum"
476
                    android:layout_width="wrap_content"
476
                    android:layout_width="wrap_content"
477
                    android:layout_height="match_parent"
477
                    android:layout_height="match_parent"
478
                    android:layout_alignParentTop="true"
479
                    android:layout_alignParentEnd="true"
480
                    android:layout_alignParentRight="true"
481
                    android:layout_marginRight="44px"
478
                    android:layout_weight="1"
482
                    android:layout_weight="1"
479
                    android:inputType="number"
480
                    android:background="@color/white"
483
                    android:background="@color/white"
481
                    android:editable="true"
484
                    android:editable="true"
482
                    android:gravity="center"
485
                    android:gravity="center"
483
                    android:hint="桩数"
486
                    android:hint="桩数"
487
                    android:inputType="number"
484
                    android:text=""
488
                    android:text=""
485
                    android:textColor="@color/ui_62"
489
                    android:textColor="@color/ui_62"
486
                    android:textColorHint="@color/ui_68"
490
                    android:textColorHint="@color/ui_68"
487
                    android:textSize="15sp"
488
                    android:layout_alignParentTop="true"
489
                    android:layout_alignParentRight="true"
490
                    android:layout_marginRight="44px"
491
                    android:layout_alignParentEnd="true" />
491
                    android:textSize="15sp" />
492

492

493
            </com.zhy.autolayout.AutoRelativeLayout>
493
            </com.zhy.autolayout.AutoRelativeLayout>
494

494

510
            <com.zhy.autolayout.AutoLinearLayout
510
            <com.zhy.autolayout.AutoLinearLayout
511
                android:layout_width="match_parent"
511
                android:layout_width="match_parent"
512
                android:layout_height="120px"
512
                android:layout_height="120px"
513
                android:gravity="center"
514
                android:background="@color/bg_row">
513
                android:background="@color/bg_row"
514
                android:gravity="center">
515

515

516
                <TextView
516
                <TextView
517
                    android:layout_width="wrap_content"
517
                    android:layout_width="wrap_content"
518
                    android:layout_height="wrap_content"
518
                    android:layout_height="wrap_content"
519
                    android:text="*"
520
                    android:textSize="15sp"
519
                    android:layout_centerInParent="true"
521
                    android:layout_marginLeft="44px"
520
                    android:layout_marginLeft="44px"
522
                    android:layout_marginRight="8px"
521
                    android:layout_marginRight="8px"
523
                    android:layout_centerInParent="true"
524
                    android:textColor="@color/xinghao"/>
522
                    android:text="*"
523
                    android:textColor="@color/xinghao"
524
                    android:textSize="15sp" />
525

525

526
                <TextView
526
                <TextView
527
                    android:layout_width="wrap_content"
527
                    android:layout_width="wrap_content"
536
                    android:layout_width="0dp"
536
                    android:layout_width="0dp"
537
                    android:layout_height="match_parent"
537
                    android:layout_height="match_parent"
538
                    android:layout_marginLeft="20px"
538
                    android:layout_marginLeft="20px"
539
                    android:layout_weight="5"
540
                    android:layout_marginRight="44px"
539
                    android:layout_marginRight="44px"
540
                    android:layout_weight="5"
541
                    android:background="@color/white"
541
                    android:background="@color/white"
542
                    android:editable="true"
543
                    android:gravity="center|right"
542
                    android:gravity="center|right"
544
                    android:inputType="text"
545
                    android:hint="如:0.87元/度"
543
                    android:hint="如:0.87元/度"
544
                    android:inputType="text"
546
                    android:text=""
545
                    android:text=""
547
                    android:textColor="@color/ui_62"
546
                    android:textColor="@color/ui_62"
548
                    android:textColorHint="@color/ui_68"
547
                    android:textColorHint="@color/ui_68"
549
                    android:textSize="15sp" />
548
                    android:textSize="15sp" />
550

549

551

550

552

553
            </com.zhy.autolayout.AutoLinearLayout>
551
            </com.zhy.autolayout.AutoLinearLayout>
554

552

555
            <TextView
553
            <TextView
556
                android:layout_width="match_parent"
554
                android:layout_width="match_parent"
557
                android:layout_height="wrap_content"
555
                android:layout_height="wrap_content"
558
                android:text="如存在分时电价,请在照片中上传包含电价信息的照片或截图"
559
                android:layout_marginLeft="44px"
556
                android:layout_marginLeft="44px"
560
                android:layout_marginRight="44px"
557
                android:layout_marginRight="44px"
558
                android:text="如存在分时电价,请在照片中上传包含电价信息的照片或截图"
561
                android:textColor="@color/ui_68"
559
                android:textColor="@color/ui_68"
562
                android:textSize="12sp" />
560
                android:textSize="12sp" />
561

563
            <View
562
            <View
564
                android:layout_width="match_parent"
563
                android:layout_width="match_parent"
565
                android:layout_height="0.5dp"
564
                android:layout_height="0.5dp"
574
                android:background="@color/bg_row">
573
                android:background="@color/bg_row">
575

574

576
                <TextView
575
                <TextView
576
                    android:id="@+id/textView23"
577
                    android:layout_width="wrap_content"
577
                    android:layout_width="wrap_content"
578
                    android:layout_height="wrap_content"
578
                    android:layout_height="wrap_content"
579
                    android:text="*"
580
                    android:textSize="15sp"
579
                    android:layout_alignParentStart="true"
580
                    android:layout_alignParentLeft="true"
581
                    android:layout_centerInParent="true"
581
                    android:layout_marginLeft="44px"
582
                    android:layout_marginLeft="44px"
582
                    android:layout_marginRight="8px"
583
                    android:layout_marginRight="8px"
584
                    android:text="*"
583
                    android:textColor="@color/xinghao"
585
                    android:textColor="@color/xinghao"
584
                    android:id="@+id/textView23"
585
                    android:layout_centerInParent="true"
586
                    android:layout_alignParentLeft="true"
587
                    android:layout_alignParentStart="true" />
586
                    android:textSize="15sp" />
588

587

589
                <TextView
588
                <TextView
590
                    android:layout_width="wrap_content"
589
                    android:layout_width="wrap_content"
591
                    android:layout_height="wrap_content"
590
                    android:layout_height="wrap_content"
592
                    android:text="服务费"
593
                    android:textColor="@color/ui_65"
594
                    android:textSize="15sp"
595
                    android:layout_alignTop="@+id/textView23"
591
                    android:layout_alignTop="@+id/textView23"
592
                    android:layout_toEndOf="@+id/textView23"
596
                    android:layout_toRightOf="@+id/textView23"
593
                    android:layout_toRightOf="@+id/textView23"
597
                    android:layout_toEndOf="@+id/textView23" />
594
                    android:text="服务费"
595
                    android:textColor="@color/ui_65"
596
                    android:textSize="15sp" />
598

597

599
                <EditText
598
                <EditText
600
                    android:id="@+id/et_serviceCost"
599
                    android:id="@+id/et_serviceCost"
601
                    style="?android:attr/textViewStyle"
600
                    style="?android:attr/textViewStyle"
602
                    android:background="@null"
603
                    android:layout_width="wrap_content"
601
                    android:layout_width="wrap_content"
604
                    android:layout_height="match_parent"
602
                    android:layout_height="match_parent"
603
                    android:layout_alignParentEnd="true"
604
                    android:layout_alignParentRight="true"
605
                    android:layout_centerVertical="true"
606
                    android:layout_marginRight="44px"
607
                    android:background="@null"
605
                    android:contentDescription="@null"
608
                    android:contentDescription="@null"
606
                    android:gravity="center|right"
609
                    android:gravity="center|right"
610
                    android:hint="如:0.8元/度"
611
                    android:inputType="text"
607
                    android:text=""
612
                    android:text=""
608
                    android:textColor="@color/ui_62"
613
                    android:textColor="@color/ui_62"
609
                    android:textColorHint="@color/ui_68"
614
                    android:textColorHint="@color/ui_68"
610
                    android:inputType="text"
611
                    android:hint="如:0.8元/度"
612
                    android:textSize="15sp"
613
                    android:layout_alignParentRight="true"
614
                    android:layout_centerVertical="true"
615
                    android:layout_marginRight="44px"
616
                    android:layout_alignParentEnd="true"/>
615
                    android:textSize="15sp" />
617
            </com.zhy.autolayout.AutoRelativeLayout>
616
            </com.zhy.autolayout.AutoRelativeLayout>
618

617

619
            <View
618
            <View
625
            <com.zhy.autolayout.AutoLinearLayout
624
            <com.zhy.autolayout.AutoLinearLayout
626
                android:layout_width="match_parent"
625
                android:layout_width="match_parent"
627
                android:layout_height="139px"
626
                android:layout_height="139px"
628
                android:gravity="center"
629
                android:background="@color/bg_row">
627
                android:background="@color/bg_row"
628
                android:gravity="center">
630

629

631
                <TextView
630
                <TextView
632
                    android:layout_width="wrap_content"
631
                    android:layout_width="wrap_content"
633
                    android:layout_height="wrap_content"
632
                    android:layout_height="wrap_content"
633
                    android:layout_centerInParent="true"
634
                    android:layout_marginLeft="44px"
635
                    android:layout_marginRight="8px"
634
                    android:text="*"
636
                    android:text="*"
635
                    android:textSize="15sp"
637
                    android:textColor="@color/xinghao"
638
                    android:textSize="15sp" />
639

640
                <TextView
641
                    android:layout_width="wrap_content"
642
                    android:layout_height="wrap_content"
643
                    android:text="收费方式"
644
                    android:textColor="@color/ui_65"
645
                    android:textSize="15sp" />
646

647

648
                <EditText
649
                    android:id="@+id/et_charge_cost_way"
650
                    android:layout_width="0dp"
651
                    android:layout_height="match_parent"
652
                    android:layout_marginLeft="20px"
653
                    android:layout_marginRight="44px"
654
                    android:layout_weight="5"
655
                    android:background="@color/white"
656
                    android:gravity="center|right"
657
                    android:hint="特来电APP"
658
                    android:inputType="text"
659
                    android:text=""
660
                    android:textColor="@color/ui_62"
661
                    android:textColorHint="@color/ui_68"
662
                    android:textSize="15sp" />
663

664

665
            </com.zhy.autolayout.AutoLinearLayout>
666

667
            <View
668
                android:layout_width="match_parent"
669
                android:layout_height="0.5dp"
670
                android:layout_marginLeft="44px"
671
                android:background="@color/ui_line" />
672

673
            <com.zhy.autolayout.AutoLinearLayout
674
                android:layout_width="match_parent"
675
                android:layout_height="139px"
676
                android:background="@color/bg_row"
677
                android:gravity="center">
678

679
                <TextView
680
                    android:layout_width="wrap_content"
681
                    android:layout_height="wrap_content"
682
                    android:layout_centerInParent="true"
636
                    android:layout_marginLeft="44px"
683
                    android:layout_marginLeft="44px"
637
                    android:layout_marginRight="8px"
684
                    android:layout_marginRight="8px"
685
                    android:text="*"
638
                    android:textColor="@color/xinghao"
686
                    android:textColor="@color/xinghao"
639
                    android:layout_centerInParent="true"/>
687
                    android:textSize="15sp" />
640

688

641
                <TextView
689
                <TextView
642
                    android:layout_width="wrap_content"
690
                    android:layout_width="wrap_content"
651
                    android:layout_width="0dp"
699
                    android:layout_width="0dp"
652
                    android:layout_height="match_parent"
700
                    android:layout_height="match_parent"
653
                    android:layout_marginLeft="20px"
701
                    android:layout_marginLeft="20px"
654
                    android:layout_weight="5"
655
                    android:layout_marginRight="44px"
702
                    android:layout_marginRight="44px"
703
                    android:layout_weight="5"
656
                    android:background="@color/white"
704
                    android:background="@color/white"
657
                    android:editable="true"
658
                    android:gravity="center|right"
705
                    android:gravity="center|right"
659
                    android:inputType="text"
660
                    android:hint="如:5元/时"
706
                    android:hint="如:5元/时"
707
                    android:inputType="text"
661
                    android:text=""
708
                    android:text=""
662
                    android:textColor="@color/ui_62"
709
                    android:textColor="@color/ui_62"
663
                    android:textColorHint="@color/ui_68"
710
                    android:textColorHint="@color/ui_68"
664
                    android:textSize="15sp" />
711
                    android:textSize="15sp" />
665

712

666

713

667

668
            </com.zhy.autolayout.AutoLinearLayout>
714
            </com.zhy.autolayout.AutoLinearLayout>
715

669
            <View
716
            <View
670
                android:layout_width="match_parent"
717
                android:layout_width="match_parent"
671
                android:layout_height="0.5dp"
718
                android:layout_height="0.5dp"
673
                android:background="@color/ui_line" />
720
                android:background="@color/ui_line" />
674

721

675

722

676

677

678
            <com.zhy.autolayout.AutoRelativeLayout
723
            <com.zhy.autolayout.AutoRelativeLayout
679
                android:id="@+id/ll_select_cost_type"
724
                android:id="@+id/ll_select_cost_type"
680
                android:layout_width="match_parent"
725
                android:layout_width="match_parent"
682
                android:background="@color/bg_row">
727
                android:background="@color/bg_row">
683

728

684
                <TextView
729
                <TextView
730
                    android:id="@+id/textView20"
685
                    android:layout_width="wrap_content"
731
                    android:layout_width="wrap_content"
686
                    android:layout_height="wrap_content"
732
                    android:layout_height="wrap_content"
687
                    android:text="*"
688
                    android:textColor="@color/xinghao"
689
                    android:id="@+id/textView20"
690
                    android:layout_alignTop="@+id/textView17"
733
                    android:layout_alignTop="@+id/textView17"
691
                    android:layout_alignParentLeft="true"
692
                    android:layout_alignParentStart="true"
734
                    android:layout_alignParentStart="true"
735
                    android:layout_alignParentLeft="true"
693
                    android:layout_centerInParent="true"
736
                    android:layout_centerInParent="true"
694
                    android:textSize="15sp"
695
                    android:layout_marginLeft="44px"
737
                    android:layout_marginLeft="44px"
696
                    android:layout_marginRight="8px"/>
738
                    android:layout_marginRight="8px"
739
                    android:text="*"
740
                    android:textColor="@color/xinghao"
741
                    android:textSize="15sp" />
697

742

698
                <TextView
743
                <TextView
744
                    android:id="@+id/textView17"
699
                    android:layout_width="wrap_content"
745
                    android:layout_width="wrap_content"
700
                    android:layout_height="wrap_content"
746
                    android:layout_height="wrap_content"
701
                    android:text="运营商"
702
                    android:textColor="@color/ui_65"
703
                    android:textSize="15sp"
704
                    android:id="@+id/textView17"
705
                    android:layout_centerVertical="true"
747
                    android:layout_centerVertical="true"
748
                    android:layout_toEndOf="@+id/textView20"
706
                    android:layout_toRightOf="@+id/textView20"
749
                    android:layout_toRightOf="@+id/textView20"
707
                    android:layout_toEndOf="@+id/textView20" />
750
                    android:text="运营商"
751
                    android:textColor="@color/ui_65"
752
                    android:textSize="15sp" />
708

753

709

754

710
                <TextView
755
                <TextView
711
                    android:id="@+id/tv_costtype"
756
                    android:id="@+id/tv_costtype"
712
                    android:layout_width="wrap_content"
757
                    android:layout_width="wrap_content"
713
                    android:layout_height="match_parent"
758
                    android:layout_height="match_parent"
759
                    android:layout_centerVertical="true"
760
                    android:layout_marginRight="20px"
761
                    android:layout_toLeftOf="@+id/imageView4"
714
                    android:background="@color/white"
762
                    android:background="@color/white"
715
                    android:editable="true"
716
                    android:text=""
717
                    android:hint="请选择运营商"
718
                    android:gravity="center|right"
763
                    android:gravity="center|right"
719
                    android:textColorHint="@color/ui_68"
720
                    android:textColor="@color/ui_62"
721
                    android:layout_marginRight="20px"
764
                    android:hint="请选择运营商"
722
                    android:paddingLeft="300px"
765
                    android:paddingLeft="300px"
723
                    android:textSize="15sp"
724
                    android:layout_centerVertical="true"
725
                    android:layout_toLeftOf="@+id/imageView4" />
766
                    android:text=""
767
                    android:textColor="@color/ui_62"
768
                    android:textColorHint="@color/ui_68"
769
                    android:textSize="15sp" />
726

770

727
                <ImageView
771
                <ImageView
772
                    android:id="@+id/imageView4"
728
                    android:layout_width="wrap_content"
773
                    android:layout_width="wrap_content"
729
                    android:layout_height="wrap_content"
774
                    android:layout_height="wrap_content"
730
                    android:src="@drawable/icon_select"
731
                    android:id="@+id/imageView4"
732
                    android:layout_marginRight="44px"
733
                    android:layout_centerVertical="true"
775
                    android:layout_alignParentEnd="true"
734
                    android:layout_alignParentRight="true"
776
                    android:layout_alignParentRight="true"
735
                    android:layout_alignParentEnd="true" />
777
                    android:layout_centerVertical="true"
778
                    android:layout_marginRight="44px"
779
                    android:src="@drawable/icon_select" />
736

780

737

781

738
            </com.zhy.autolayout.AutoRelativeLayout>
782
            </com.zhy.autolayout.AutoRelativeLayout>
739

783

784
            <!-- 运营商电话 -->
785
            <View
786
                android:layout_width="match_parent"
787
                android:layout_height="0.5dp"
788
                android:layout_marginLeft="44px"
789
                android:background="@color/ui_line" />
790

791
            <com.zhy.autolayout.AutoLinearLayout
792
                android:layout_width="match_parent"
793
                android:layout_height="139px"
794
                android:background="@color/bg_row"
795
                android:gravity="center">
796

797
                <TextView
798
                    android:layout_width="wrap_content"
799
                    android:layout_height="wrap_content"
800
                    android:layout_centerInParent="true"
801
                    android:layout_marginLeft="44px"
802
                    android:layout_marginRight="8px"
803
                    android:text="*"
804
                    android:textColor="@color/xinghao"
805
                    android:textSize="15sp" />
806

807
                <TextView
808
                    android:layout_width="wrap_content"
809
                    android:layout_height="wrap_content"
810
                    android:text="运营商电话"
811
                    android:textColor="@color/ui_65"
812
                    android:textSize="15sp" />
813

814

815
                <EditText
816
                    android:id="@+id/et_telephone"
817
                    android:layout_width="0dp"
818
                    android:layout_height="match_parent"
819
                    android:layout_marginLeft="20px"
820
                    android:layout_marginRight="44px"
821
                    android:layout_weight="5"
822
                    android:background="@color/white"
823
                    android:gravity="center|right"
824
                    android:hint="请输入电话号码"
825
                    android:inputType="text"
826
                    android:text=""
827
                    android:textColor="@color/ui_62"
828
                    android:textColorHint="@color/ui_68"
829
                    android:textSize="15sp" />
830

831

832
            </com.zhy.autolayout.AutoLinearLayout>
833

740
            <View
834
            <View
741
                android:layout_width="match_parent"
835
                android:layout_width="match_parent"
742
                android:layout_height="0.5dp"
836
                android:layout_height="0.5dp"
759
                android:background="@color/white">
853
                android:background="@color/white">
760

854

761
                <TextView
855
                <TextView
856
                    android:id="@+id/textView24"
762
                    android:layout_width="wrap_content"
857
                    android:layout_width="wrap_content"
763
                    android:layout_height="wrap_content"
858
                    android:layout_height="wrap_content"
764
                    android:text="*"
765
                    android:textSize="15sp"
859
                    android:layout_alignParentStart="true"
860
                    android:layout_alignParentLeft="true"
861
                    android:layout_centerInParent="true"
766
                    android:layout_marginLeft="44px"
862
                    android:layout_marginLeft="44px"
767
                    android:layout_marginRight="8px"
863
                    android:layout_marginRight="8px"
864
                    android:text="*"
768
                    android:textColor="@color/xinghao"
865
                    android:textColor="@color/xinghao"
769
                    android:id="@+id/textView24"
770
                    android:layout_centerInParent="true"
771
                    android:layout_alignParentLeft="true"
772
                    android:layout_alignParentStart="true" />
866
                    android:textSize="15sp" />
773

867

774
                <TextView
868
                <TextView
869
                    android:id="@+id/textView13"
775
                    android:layout_width="wrap_content"
870
                    android:layout_width="wrap_content"
776
                    android:layout_height="wrap_content"
871
                    android:layout_height="wrap_content"
777
                    android:text="停车场地"
778
                    android:textColor="@color/ui_65"
779
                    android:textSize="15sp"
780
                    android:id="@+id/textView13"
781
                    android:layout_alignTop="@+id/textView24"
872
                    android:layout_alignTop="@+id/textView24"
873
                    android:layout_toEndOf="@+id/textView24"
782
                    android:layout_toRightOf="@+id/textView24"
874
                    android:layout_toRightOf="@+id/textView24"
783
                    android:layout_toEndOf="@+id/textView24" />
875
                    android:text="停车场地"
876
                    android:textColor="@color/ui_65"
877
                    android:textSize="15sp" />
784

878

785
                <RadioGroup
879
                <RadioGroup
786
                    android:id="@+id/rg_park"
880
                    android:id="@+id/rg_park"
787
                    android:layout_width="wrap_content"
881
                    android:layout_width="wrap_content"
788
                    android:layout_height="wrap_content"
882
                    android:layout_height="wrap_content"
789
                    android:orientation="horizontal"
790
                    android:layout_marginRight="44px"
791
                    android:layout_centerVertical="true"
792
                    android:layout_alignParentRight="true"
793
                    android:layout_alignParentEnd="true"
883
                    android:layout_alignParentEnd="true"
794
                    android:layout_marginEnd="44px">
884
                    android:layout_alignParentRight="true"
885
                    android:layout_centerVertical="true"
886
                    android:layout_marginEnd="44px"
887
                    android:layout_marginRight="44px"
888
                    android:orientation="horizontal">
795

889

796
                    <RadioButton
890
                    <RadioButton
797
                        android:id="@+id/rb_shang"
891
                        android:id="@+id/rb_shang"
799
                        android:layout_height="wrap_content"
893
                        android:layout_height="wrap_content"
800
                        android:layout_marginLeft="44px"
894
                        android:layout_marginLeft="44px"
801
                        android:background="@drawable/icon_shangselected1105"
895
                        android:background="@drawable/icon_shangselected1105"
802
                        android:button="@null"
803
                        />
896
                        android:button="@null" />
804

897

805
                    <RadioButton
898
                    <RadioButton
806
                        android:id="@+id/rb_xia"
899
                        android:id="@+id/rb_xia"
808
                        android:layout_height="wrap_content"
901
                        android:layout_height="wrap_content"
809
                        android:layout_marginLeft="44px"
902
                        android:layout_marginLeft="44px"
810
                        android:background="@drawable/icon_xianormal1105"
903
                        android:background="@drawable/icon_xianormal1105"
811
                        android:button="@null"
812
                        />
904
                        android:button="@null" />
813
                </RadioGroup>
905
                </RadioGroup>
814

906

815
            </com.zhy.autolayout.AutoRelativeLayout>
907
            </com.zhy.autolayout.AutoRelativeLayout>
818
                android:layout_width="fill_parent"
910
                android:layout_width="fill_parent"
819
                android:layout_height="0.5dp"
911
                android:layout_height="0.5dp"
820
                android:layout_marginLeft="44px"
912
                android:layout_marginLeft="44px"
821
                android:background="@color/ui_line"/>
913
                android:background="@color/ui_line" />
822

914

823
            <com.zhy.autolayout.AutoLinearLayout
915
            <com.zhy.autolayout.AutoLinearLayout
824
                android:id="@+id/rl_prefect_time"
916
                android:id="@+id/rl_prefect_time"
829
                <TextView
921
                <TextView
830
                    android:id="@+id/tv_prefect_time"
922
                    android:id="@+id/tv_prefect_time"
831
                    android:layout_width="0dp"
923
                    android:layout_width="0dp"
832
                    android:layout_weight="1.5"
833
                    android:layout_height="wrap_content"
924
                    android:layout_height="wrap_content"
834
                    android:layout_alignParentLeft="true"
925
                    android:layout_alignParentLeft="true"
835
                    android:layout_centerVertical="true"
926
                    android:layout_centerVertical="true"
927
                    android:layout_weight="1.5"
836
                    android:paddingLeft="44px"
928
                    android:paddingLeft="44px"
837
                    android:text="开放时间"
929
                    android:text="开放时间"
838
                    android:textColor="@color/ui_65"
930
                    android:textColor="@color/ui_65"
839
                    android:textSize="15sp"/>
931
                    android:textSize="15sp" />
840

932

841
                <TextView
933
                <TextView
842
                    android:id="@+id/tv_prefect_start_time"
934
                    android:id="@+id/tv_prefect_start_time"
843
                    android:layout_width="wrap_content"
935
                    android:layout_width="wrap_content"
844
                    android:layout_height="match_parent"
936
                    android:layout_height="match_parent"
937
                    android:layout_centerVertical="true"
938
                    android:layout_toEndOf="@+id/tv_prefect_time"
939
                    android:layout_toRightOf="@+id/tv_prefect_time"
845
                    android:gravity="center"
940
                    android:gravity="center"
846
                    android:hint="00:00"
941
                    android:hint="00:00"
942
                    android:paddingLeft="44px"
943
                    android:paddingRight="20px"
847
                    android:text=""
944
                    android:text=""
848
                    android:textColor="@color/ui_62"
945
                    android:textColor="@color/ui_62"
849
                    android:textColorHint="@color/ui_68"
946
                    android:textColorHint="@color/ui_68"
850
                    android:textSize="15sp"
851
                    android:paddingRight="20px"
852
                    android:paddingLeft="44px"
853
                    android:layout_centerVertical="true"
854
                    android:layout_toRightOf="@+id/tv_prefect_time"
855
                    android:layout_toEndOf="@+id/tv_prefect_time"/>
947
                    android:textSize="15sp" />
856

948

857
                <ImageView
949
                <ImageView
858
                    android:layout_width="wrap_content"
950
                    android:layout_width="wrap_content"
859
                    android:layout_height="match_parent"
951
                    android:layout_height="match_parent"
860
                    android:layout_centerVertical="true"
952
                    android:layout_centerVertical="true"
953
                    android:layout_toEndOf="@id/tv_prefect_time"
861
                    android:layout_toRightOf="@id/tv_prefect_start_time"
954
                    android:layout_toRightOf="@id/tv_prefect_start_time"
862
                    android:src="@drawable/icon_zhi2_0"
863
                    android:layout_toEndOf="@id/tv_prefect_time"/>
955
                    android:src="@drawable/icon_zhi2_0" />
864

956

865
                <TextView
957
                <TextView
866
                    android:id="@+id/tv_ferfect_time"
958
                    android:id="@+id/tv_ferfect_time"
867
                    android:layout_width="wrap_content"
959
                    android:layout_width="wrap_content"
868
                    android:layout_height="match_parent"
960
                    android:layout_height="match_parent"
869
                    android:gravity="center"
961
                    android:layout_alignParentEnd="true"
962
                    android:layout_alignParentRight="true"
963
                    android:layout_centerVertical="true"
870
                    android:contentDescription="@null"
964
                    android:contentDescription="@null"
965
                    android:gravity="center"
871
                    android:hint="24:00"
966
                    android:hint="24:00"
967
                    android:paddingLeft="20px"
968
                    android:paddingRight="44px"
872
                    android:text=""
969
                    android:text=""
873
                    android:textColor="@color/ui_62"
970
                    android:textColor="@color/ui_62"
874
                    android:textColorHint="@color/ui_68"
971
                    android:textColorHint="@color/ui_68"
875
                    android:textSize="15sp"
876
                    android:paddingRight="44px"
877
                    android:paddingLeft="20px"
878
                    android:layout_alignParentRight="true"
879
                    android:layout_centerVertical="true"
880

972

881
                    android:layout_alignParentEnd="true"/>
973
                    android:textSize="15sp" />
882
            </com.zhy.autolayout.AutoLinearLayout>
974
            </com.zhy.autolayout.AutoLinearLayout>
883

975

884
            <View
976
            <View
885
                android:layout_width="fill_parent"
977
                android:layout_width="fill_parent"
886
                android:layout_height="0.5dp"
978
                android:layout_height="0.5dp"
887
                android:layout_marginLeft="44px"
979
                android:layout_marginLeft="44px"
888
                android:background="@color/ui_line"/>
980
                android:background="@color/ui_line" />
889

981

890
            <EditText
982
            <EditText
891
                android:id="@+id/et_remarkclaim"
983
                android:id="@+id/et_remarkclaim"
892
                android:layout_width="match_parent"
984
                android:layout_width="match_parent"
893
                android:layout_height="wrap_content"
985
                android:layout_height="wrap_content"
894
                android:hint="备注说明"
986
                android:background="@color/white"
895
                android:gravity="left|top"
987
                android:gravity="left|top"
988
                android:hint="备注说明"
896
                android:paddingLeft="44px"
989
                android:paddingLeft="44px"
897
                android:paddingRight="44px"
898
                android:paddingTop="48px"
990
                android:paddingTop="48px"
991
                android:paddingRight="44px"
899
                android:paddingBottom="50px"
992
                android:paddingBottom="50px"
900
                android:background="@color/white"
901
                android:textColor="@color/ui_62"
993
                android:textColor="@color/ui_62"
902
                android:textColorHint="@color/ui_68"
994
                android:textColorHint="@color/ui_68"
903
                android:textSize="15sp" />
995
                android:textSize="15sp" />
905
            <View
997
            <View
906
                android:layout_width="fill_parent"
998
                android:layout_width="fill_parent"
907
                android:layout_height="0.5dp"
999
                android:layout_height="0.5dp"
908
                android:background="@color/ui_line"/>
1000
                android:background="@color/ui_line" />
909

1001

910
            <View
1002
            <View
911
                android:layout_width="match_parent"
1003
                android:layout_width="match_parent"
912
                android:layout_height="44px"
1004
                android:layout_height="44px"
913
                android:background="@color/activity_bgcolor" />
1005
                android:background="@color/activity_bgcolor" />
914

915
            <!--<LinearLayout-->
916
            <!--android:id="@+id/ll_cost"-->
917
            <!--android:layout_width="match_parent"-->
918
            <!--android:layout_height="0dp"-->
919
            <!--android:layout_weight="1"-->
920
            <!--android:background="@drawable/click_effect">-->
921

922
            <!--<TextView-->
923
            <!--android:layout_width="wrap_content"-->
924
            <!--android:layout_height="wrap_content"-->
925
            <!--android:layout_marginLeft="10dp"-->
926
            <!--android:text="支付方式"-->
927
            <!--android:textColor="@color/title_row"-->
928
            <!--android:textSize="16sp" />-->
929

930
            <!--<TextView-->
931
            <!--android:id="@+id/tv_costWay"-->
932
            <!--android:layout_width="0dp"-->
933
            <!--android:layout_height="match_parent"-->
934
            <!--android:layout_marginLeft="10dp"-->
935
            <!--android:layout_weight="5"-->
936
            <!--android:gravity="right|center"-->
937
            <!--android:hint="请选择充电桩类型"-->
938
            <!--android:textColor="@color/hintColor"-->
939
            <!--android:textColorHint="@color/hintColor"-->
940
            <!--android:textSize="15sp" />-->
941

942
            <!--<ImageView-->
943
            <!--android:layout_width="0dp"-->
944
            <!--android:layout_height="wrap_content"-->
945
            <!--android:layout_gravity="center"-->
946
            <!--android:layout_weight="0.7"-->
947
            <!--android:padding="8dp"-->
948
            <!--android:src="@drawable/grey_right" />-->
949
            <!--</LinearLayout>-->
950

951
            <!--<View-->
952
            <!--android:layout_width="match_parent"-->
953
            <!--android:layout_height="0.5dp"-->
954
            <!--android:layout_marginLeft="15dp"-->
955
            <!--android:layout_marginRight="15dp"-->
956
            <!--android:background="@color/in_line" />-->
957

958

959

960

961

962

963

964
            <!--<View-->
965
            <!--android:layout_width="match_parent"-->
966
            <!--android:layout_height="0.5dp"-->
967
            <!--android:background="@color/lineColor"/>-->
968
        </com.zhy.autolayout.AutoLinearLayout>
1006
        </com.zhy.autolayout.AutoLinearLayout>
969

1007

970
    </ScrollView>
1008
    </ScrollView>
974
        android:layout_width="match_parent"
1012
        android:layout_width="match_parent"
975
        android:layout_height="127px"
1013
        android:layout_height="127px"
976
        android:layout_alignParentBottom="true"
1014
        android:layout_alignParentBottom="true"
977
        android:background="@color/lvse"
978
        android:layout_gravity="center"
1015
        android:layout_gravity="center"
1016
        android:background="@color/lvse"
979
        android:gravity="center"
1017
        android:gravity="center"
980
        android:text="立即提交"
1018
        android:text="立即提交"
981
        android:textColor="@color/white"
1019
        android:textColor="@color/white"
982
        android:textSize="15sp" />
1020
        android:textSize="15sp" />
983

1021

984

1022

985

986

987
</com.zhy.autolayout.AutoRelativeLayout>
1023
</com.zhy.autolayout.AutoRelativeLayout>