huyuguo %!s(int64=4) %!d(string=hace) años
padre
commit
6e451e46ec

+ 11 - 252
app/src/main/java/com/electric/chargingpile/activity/AlterOneActivity.java

@ -177,8 +177,6 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
177 177
                    }
178 178
                    break;
179 179
                case StatusConstants.REQUEST_WHAT_SUCCESS:
180

181

182 180
                    break;
183 181
            }
184 182
            super.handleMessage(msg);
@ -239,17 +237,13 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
239 237

240 238

241 239
        final RelativeLayout parent = (RelativeLayout) view.findViewById(R.id.parent);
242
        Button bt1 = (Button) view
243
                .findViewById(R.id.item_popupwindows_camera);
244
        Button bt2 = (Button) view
245
                .findViewById(R.id.item_popupwindows_Photo);
246
        Button bt3 = (Button) view
247
                .findViewById(R.id.item_popupwindows_cancel);
240
        Button bt1 = (Button) view.findViewById(R.id.item_popupwindows_camera);
241
        Button bt2 = (Button) view.findViewById(R.id.item_popupwindows_Photo);
242
        Button bt3 = (Button) view.findViewById(R.id.item_popupwindows_cancel);
248 243
        parent.setOnClickListener(new View.OnClickListener() {
249 244

250 245
            @Override
251 246
            public void onClick(View v) {
252
                // TODO Auto-generated method stub
253 247
                pop.dismiss();
254 248
                ll_popup.clearAnimation();
255 249
            }
@ -264,7 +258,6 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
264 258
                } else {
265 259
                    ToastUtil.showToast(getApplicationContext(), "您当前关闭了调用摄像头权限", Toast.LENGTH_SHORT);
266 260
                }
267

268 261
            }
269 262
        });
270 263
        bt2.setOnClickListener(new View.OnClickListener() {
@ -293,13 +286,11 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
293 286
        noScrollgridview.setAdapter(adapter);
294 287
        noScrollgridview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
295 288

296
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
297
                                    long arg3) {
289
            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
298 290
                if (arg2 == Bimp.tempSelectBitmap.size()) {
299 291
                    permissionTask();
300 292
                } else {
301
                    Intent intent = new Intent(AlterOneActivity.this,
302
                            GalleryActivityAlter.class);
293
                    Intent intent = new Intent(AlterOneActivity.this, GalleryActivityAlter.class);
303 294
                    intent.putExtra("position", "1");
304 295
                    intent.putExtra("ID", arg2);
305 296
                    startActivity(intent);
@ -353,7 +344,7 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
353 344
                        try {
354 345

355 346
                            List<Uri> uriList = Matisse.obtainResult(data);
356
                            for (Uri uri: uriList) {
347
                            for (Uri uri : uriList) {
357 348
                                Bitmap bitmap = BitmapFactory.decodeStream(getContentResolver().openInputStream(uri));
358 349
                                File file = FileUtils.from(AlterOneActivity.this, uri);
359 350

@ -700,9 +691,6 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
700 691
            }
701 692

702 693
        }
703
//        par.put("user_id", MainApplication.userId);
704
//        par.put("zhan_name", zhan_name);
705
//        par.put("zhan_id", zhan_id);
706 694
        par.put("user_id", MainApplication.userId);
707 695
        par.put("stop_cost", "");
708 696
        par.put("server_cost", "");
@ -730,180 +718,6 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
730 718
        }
731 719
    }
732 720

733
//    private void alterOne() {
734
//        new Thread(new Runnable() {
735
//            @Override
736
//            public void run() {
737
//                String url = "http://123.57.6.131/zhannew/basic/web/index.php/zhanalterpoi/add?stop_cost="+parkCost.getText().toString()+"&server_cost="+serviceCost.getText().toString()+"&user_id="+ MainApplication.userPhone+"&zhan_id="+zhan_id+"&contact="+remark.getText().toString()+"&other="+parkType+"&zhan_name="+zhan.getZhan_name();
738
//                submit(url);
739
//            }
740
//        }).start();
741
//    }
742
//
743
//    private void submit( String sms) {
744
//
745
//        Log.e("url", sms);
746
//        Request request = new Request.Builder().url(sms).build();
747
//        Response response = null;
748
//        try{
749
//            if(request==null){
750
//                Message msg = new Message();
751
//                msg.what=3;
752
//                handler.sendMessage(msg);
753
//                return;
754
//            }
755
//            response = OkHttpUtil.execute(request);
756
//            if (response.code() == 200) {
757
//                String json = "";
758
//                try {
759
//                    json = response.body().string();
760
//                    Message msg = new Message();
761
//                    msg.obj = json;
762
//                    msg.what=2;
763
//                    handler.sendMessage(msg);
764
//                    Log.e("url", json);
765
//                }catch (Exception e){
766
//                    e.printStackTrace();
767
//                    Message msg = new Message();
768
//                    msg.what=3;
769
//                    handler.sendMessage(msg);
770
//                }
771
//            }
772
//        }catch (Exception e){
773
//            e.printStackTrace();
774
//            Message msg = new Message();
775
//            msg.what=3;
776
//            handler.sendMessage(msg);
777
//        }
778
//    }
779

780
//    private void addPHoto(final String s) {
781
//        if (!NetUtil.CheckNetwork(this)) {
782
//            Toast.makeText(this, "请检查网络", Toast.LENGTH_SHORT).show();
783
//            return;
784
//        }
785
//        new Thread(new Runnable() {
786
//            @Override
787
//            public void run() {
788
////
789
//                try {
790
//                    Map<String, String> par = new HashMap<String, String>();
791
//                    par.put("file", s);
792
////                    par.put("file1", s);
793
////                    par.put("file2", s);
794
//
795
//                    par.put("filename","head.jpg");
796
//                    par.put("zhan_id",zhan_id);
797
//                    par.put("user_id",MainApplication.userPhone);
798
//                    par.put("ishot","2");
799
//                    //如果是热点标注部分图片ishot为1
800
//                    Log.i("++++++++@","filename:"+s+",zhan_id:"+zhan_id+",user_id:"+MainApplication.userPhone);
801
//                    String u = UploadUtil.post("http://123.57.6.131/zhan/index.php?m=content&c=upfile",par, null);
802
//                    Message msg = new Message();
803
//                    msg.obj = u;
804
//                    msg.what=5;
805
//                    handler.sendMessage(msg);
806
//                    Log.e("url", u);
807
//                } catch (Exception e) {
808
//                    e.printStackTrace();
809
//                    Message msg = new Message();
810
//                    msg.what=3;
811
//                    handler.sendMessage(msg);
812
//                }
813
//            }
814
//        }).start();
815
//
816
//    }
817

818

819
//    private static boolean isTrueDate(String date1, String date2) {
820
//        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
821
//        try {
822
//            Date dt1 = df.parse(date1);
823
//            Date dt2 = df.parse(date2);
824
//
825
//            System.err.println(dt1.getTime() - dt2.getTime());
826
//            long cha = dt1.getTime() - dt2.getTime();
827
//            if (cha >= 0 && cha <= 259200000) {
828
//                return true;
829
//            } else {
830
//                return false;
831
//            }
832
//        } catch (Exception exception) {
833
//            exception.printStackTrace();
834
//        }
835
//        return false;
836
//
837
//    }
838
//
839
//    /**
840
//     * 裁剪图片方法实现 @param uri   
841
//     */
842
//    public void startPhotoZoom(Uri uri) {
843
//		/*
844
//		 *   * 至于下面这个Intent的ACTION是怎么知道的,大家可以看下自己路径下的如下网页   *
845
//		 * yourself_sdk_path/docs/reference/android/content/Intent.html   *
846
//		 * 直接在里面Ctrl+F搜:CROP ,之前小马没仔细看过,其实安卓系统早已经有自带图片裁剪功能,   * 是直接调本地库的,不懂C C++
847
//		 * 这个不做详细了解去了,有轮子就用轮子,不再研究轮子是怎么   * 制做的了...吼吼   
848
//		 */
849
//        Intent intent = new Intent("com.android.camera.action.CROP");
850
//        intent.setDataAndType(uri, "image/*");
851
//        // 下面这个crop=true是设置在开启的Intent中设置显示的VIEW可裁剪
852
//        intent.putExtra("crop", "true");
853
//        // aspectX aspectY 是宽高的比例
854
//        intent.putExtra("aspectX", 16);
855
//        intent.putExtra("aspectY", 9);
856
//        // outputX outputY 是裁剪图片宽高
857
//        intent.putExtra("outputX", 480);
858
//        intent.putExtra("outputY", 270);
859
//        intent.putExtra("return-data", true);
860
//        startActivityForResult(intent, 3);
861
//    }
862
//
863
//
864
//
865
//    /** 保存裁剪之后的图片数据 **/
866
//    private void setPicToView(Intent picdata) {
867
//        Bundle extras = picdata.getExtras();
868
//        if (extras != null) {
869
//            photo = extras.getParcelable("data");
870
//            if (photo != null) {
871
//                // m_imageUser.setImageBitmap((Bitmap) photo);
872
////				给image设置图片
873
////                alterImage1.setImageBitmap(photo);
874
////                uploadPhoto.setImageBitmap(photo);
875
////                addPhoto.setVisibility(View.GONE);
876
////                ll_uploadPhoto.setVisibility(View.VISIBLE);
877
//                String fileName = String.valueOf(System.currentTimeMillis());
878
////                Bitmap bm = (Bitmap) photo.getExtras().get("data");
879
//                FileUtils.saveBitmap(bm, fileName);
880
////
881
//                ImageItem takePhoto = new ImageItem();
882
//                takePhoto.setBitmap(photo);
883
//                takePhoto.setImagePath(FileUtils.SDPATH + fileName + ".JPEG");
884
//                Bimp.tempSelectBitmap.add(takePhoto);
885
//            }
886
//
887
//            }
888
//        }
889
//        if (extras != null) {
890
//            photo2 = extras.getParcelable("data");
891
//            if (photo2 != null) {
892
//                // m_imageUser.setImageBitmap((Bitmap) photo);
893
////				给image设置图片
894
//                alterImage2.setImageBitmap(photo2);
895
//
896
//            }
897
//        }
898
//        if (extras != null) {
899
//            photo3 = extras.getParcelable("data");
900
//            if (photo3 != null) {
901
//                // m_imageUser.setImageBitmap((Bitmap) photo);
902
////				给image设置图片
903
//                alterImage3.setImageBitmap(photo2);
904
//
905
//            }
906
//        }
907 721

908 722
    private Bitmap imageZoom(Bitmap bm) {
909 723
        // 图片允许最大空间 单位:KB
@ -940,8 +754,6 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
940 754
        matrix.postScale(scaleWidth, scaleHeight);
941 755
        Bitmap bitmap = Bitmap.createBitmap(bgimage, 0, 0, (int) width,
942 756
                (int) height, matrix, true);
943
//        iv_2.setImageBitmap(bitmap);
944
//        tv_2.setText(bitmap.getRowBytes() * bitmap.getHeight() + "");
945 757
        return bitmap;
946 758
    }
947 759

@ -977,52 +789,11 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
977 789

978 790
    @Override
979 791
    protected void onDestroy() {
980
//        Bimp.tempSelectBitmap.clear();
981
//        adapter.update();
982 792
        Bimp.tempSelectBitmap.clear();
983 793
        Bimp.max = 0;
984 794
        super.onDestroy();
985 795
    }
986 796

987

988
//    public Bitmap zoomImage(Bitmap bgimage, double newWidth, double newHeight) {
989
//        // 获取这个图片的宽和高
990
//        float width = bgimage.getWidth();
991
//        float height = bgimage.getHeight();
992
//        // 创建操作图片用的matrix对象
993
//        Matrix matrix = new Matrix();
994
//        // 计算宽高缩放率
995
//        float scaleWidth = ((float) newWidth) / width;
996
//        float scaleHeight = ((float) newHeight) / height;
997
//        // 缩放图片动作
998
//        matrix.postScale(scaleWidth, scaleHeight);
999
//        Bitmap bitmap = Bitmap.createBitmap(bgimage, 0, 0, (int) width,
1000
//                (int) height, matrix, true);
1001
////        iv_2.setImageBitmap(bitmap);
1002
////        tv_2.setText(bitmap.getRowBytes() * bitmap.getHeight() + "");
1003
//        return bitmap;
1004
//    }
1005

1006
//    private void imageZoom(Bitmap bm) {
1007
//        // 图片允许最大空间 单位:KB
1008
//        double maxSize = 400.00;
1009
//        // 将bitmap放至数组中,意在bitmap的大小(与实际读取的原文件要大)
1010
//        ByteArrayOutputStream baos = new ByteArrayOutputStream();
1011
//        bm.compress(Bitmap.CompressFormat.JPEG, 100, baos);
1012
//        byte[] b = baos.toByteArray();
1013
//        // 将字节换成KB
1014
//        double mid = b.length / 1024;
1015
//        // 判断bitmap占用空间是否大于允许最大空间 如果大于则压缩 小于则不压缩
1016
//        if (mid > maxSize) {
1017
//            // 获取bitmap大小 是允许最大大小的多少倍
1018
//            double i = mid / maxSize;
1019
//            // 开始压缩 此处用到平方根 将宽带和高度压缩掉对应的平方根倍
1020
//            // (1.保持刻度和高度和原bitmap比率一致,压缩后也达到了最大大小占用空间的大小)
1021
//            bm = zoomImage(bm, bm.getWidth() / Math.sqrt(i), bm.getHeight()
1022
//                    / Math.sqrt(i));
1023
//        }
1024
//    }
1025

1026 797
    public void compress(Bitmap bitmap) {
1027 798
        DisplayMetrics dm = new DisplayMetrics();
1028 799
        getWindowManager().getDefaultDisplay().getMetrics(dm);
@ -1045,7 +816,6 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
1045 816
            size = (int) Math.pow(2, logCeil);
1046 817
        }
1047 818
        opts.inSampleSize = size;
1048
        // bitmap = BitmapFactory.decodeFile(srcPath, opts);
1049 819
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
1050 820
        int quality = 100;
1051 821
        bitmap.compress(Bitmap.CompressFormat.JPEG, quality, baos);
@ -1057,9 +827,6 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
1057 827
            System.out.println(baos.toByteArray().length);
1058 828
        }
1059 829
        try {
1060
//            BitmapFactory.decodeByteArray(baos, 0, baos.toByteArray());
1061
            // baos.writeTo(new FileOutputStream(
1062
            // "/mnt/sdcard/Servyou/photo/buffer/22.jpg"));
1063 830
        } catch (Exception e) {
1064 831
            e.printStackTrace();
1065 832
        } finally {
@ -1073,23 +840,13 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
1073 840
    }
1074 841

1075 842
    private void crop(Uri uri, Uri cutImgUri) {
1076
        // �ü�ͼƬ��ͼ
1077 843
        Intent intent = new Intent("com.android.camera.action.CROP");
1078 844
        intent.setDataAndType(getImageContentUri(this, tempFile), "image/*");
1079

1080 845
        intent.putExtra("crop", "true");
1081
        // �ü���ı�����1��1
1082
//        intent.putExtra("aspectX", 16);
1083
//        intent.putExtra("aspectY", 9);
1084
//        // �ü������ͼƬ�ijߴ��С
1085
//        intent.putExtra("outputX", 640);
1086
//        intent.putExtra("outputY", 360);
1087

1088
        // ͼƬ��ʽ
1089 846
        intent.putExtra("outputFormat", "JPEG");
1090
        intent.putExtra("noFaceDetection", true);// ȡ������ʶ��
1091
        intent.putExtra("return-data", false);// true:������uri��false������uri
1092
        intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(tempFile));//д���ȡ��ͼƬ
847
        intent.putExtra("noFaceDetection", true);
848
        intent.putExtra("return-data", false);
849
        intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(tempFile));
1093 850
        startActivityForResult(intent, PHOTO_REQUEST_CUT);
1094 851
    }
1095 852

@ -1204,6 +961,7 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
1204 961
            EasyPermissions.requestPermissions(
1205 962
                    this, "充电桩想要获取您的图片读取权限,是否允许?",
1206 963
                    RC_ALBUM_PERM,
964
                    Manifest.permission.CAMERA,
1207 965
                    Manifest.permission.WRITE_EXTERNAL_STORAGE,
1208 966
                    Manifest.permission.READ_EXTERNAL_STORAGE);
1209 967
        }
@ -1211,6 +969,7 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
1211 969

1212 970
    private boolean isPermissionOK() {
1213 971
        return EasyPermissions.hasPermissions(this,
972
                Manifest.permission.CAMERA,
1214 973
                Manifest.permission.WRITE_EXTERNAL_STORAGE,
1215 974
                Manifest.permission.READ_EXTERNAL_STORAGE
1216 975
        );

+ 43 - 356
app/src/main/res/layout/activity_alter_one.xml

@ -2,16 +2,16 @@
2 2
    xmlns:tools="http://schemas.android.com/tools"
3 3
    android:layout_width="match_parent"
4 4
    android:layout_height="match_parent"
5
    android:background="@color/activity_bgcolor"
5 6
    android:focusable="true"
6 7
    android:focusableInTouchMode="true"
7
    android:orientation="vertical"
8
    android:background="@color/activity_bgcolor">
8
    android:orientation="vertical">
9 9

10 10
    <com.zhy.autolayout.AutoRelativeLayout
11
        android:id="@+id/relativeLayout"
11 12
        android:layout_width="fill_parent"
12 13
        android:layout_height="130px"
13
        android:background="@color/white"
14
        android:id="@+id/relativeLayout">
14
        android:background="@color/white">
15 15

16 16
        <TextView
17 17
            android:id="@+id/textview"
@ -29,20 +29,18 @@
29 29
            android:layout_alignParentLeft="true"
30 30
            android:layout_centerVertical="true"
31 31
            android:contentDescription="@null"
32
            android:paddingBottom="4dp"
33 32
            android:paddingLeft="16dp"
34
            android:paddingRight="16dp"
35 33
            android:paddingTop="4dp"
34
            android:paddingRight="16dp"
35
            android:paddingBottom="4dp"
36 36
            android:src="@drawable/icon_lvback1119" />
37

38

39 37
    </com.zhy.autolayout.AutoRelativeLayout>
38

40 39
    <View
41 40
        android:layout_width="fill_parent"
42 41
        android:layout_height="0.5dp"
43 42
        android:background="@color/ui_line" />
44 43

45

46 44
    <ScrollView
47 45
        android:layout_width="match_parent"
48 46
        android:layout_height="wrap_content"
@ -53,355 +51,54 @@
53 51
            android:layout_height="match_parent"
54 52
            android:orientation="vertical">
55 53

56

57
            <!--<LinearLayout-->
58
                <!--android:id="@+id/ll_alter_photo"-->
59
                <!--android:layout_width="match_parent"-->
60
                <!--android:layout_height="50dp"-->
61
                <!--android:visibility="gone"-->
62
                <!--android:background="@color/bg_row"-->
63
                <!--android:orientation="horizontal">-->
64

65
                <!--<TextView-->
66
                    <!--android:layout_width="wrap_content"-->
67
                    <!--android:layout_height="match_parent"-->
68
                    <!--android:layout_centerVertical="true"-->
69
                    <!--android:layout_marginLeft="10dp"-->
70
                    <!--android:gravity="center_vertical"-->
71
                    <!--android:text="+"-->
72
                    <!--android:textColor="#39C663"-->
73
                    <!--android:textSize="30sp" />-->
74

75
                <!--<TextView-->
76
                    <!--android:layout_width="wrap_content"-->
77
                    <!--android:layout_height="match_parent"-->
78
                    <!--android:layout_marginLeft="5dp"-->
79
                    <!--android:gravity="center"-->
80
                    <!--android:padding="5dp"-->
81
                    <!--android:text="补 充 完 善 图 片 信 息"-->
82
                    <!--android:textColor="@color/add_photo"-->
83
                    <!--android:textSize="17sp" />-->
84
            <!--</LinearLayout>-->
85

86
            <!--<LinearLayout-->
87
                <!--android:id="@+id/ll_add_photo"-->
88
                <!--android:layout_width="match_parent"-->
89
                <!--android:layout_height="100dp"-->
90
                <!--android:orientation="horizontal"-->
91
                <!--android:background="@color/bg_row">-->
92

93
                <!--<ImageView-->
94
                    <!--android:id="@+id/iv_photo1"-->
95
                    <!--android:layout_width="100dp"-->
96
                    <!--android:layout_height="match_parent"-->
97
                    <!--android:padding="15dp"-->
98
                    <!--android:src="@drawable/addpic65"/>-->
99
                <!--<TextView-->
100
                    <!--android:id="@+id/tv_add"-->
101
                    <!--android:layout_width="wrap_content"-->
102
                    <!--android:layout_height="match_parent"-->
103
                    <!--android:layout_marginLeft="5dp"-->
104
                    <!--android:gravity="center"-->
105
                    <!--android:padding="5dp"-->
106
                    <!--android:text="补 充 完 善 图 片 信 息"-->
107
                    <!--android:textColor="@color/add_photo"-->
108
                    <!--android:textSize="17sp"-->
109
                    <!--android:visibility="visible"/>-->
110

111
                <!--<ImageView-->
112
                    <!--android:id="@+id/iv_photo2"-->
113
                    <!--android:layout_width="100dp"-->
114
                    <!--android:layout_height="match_parent"-->
115
                    <!--android:padding="15dp"-->
116
                    <!--android:src="@drawable/addpic65"-->
117
                    <!--android:visibility="gone"/>-->
118

119
                <!--<ImageView-->
120
                    <!--android:id="@+id/iv_photo3"-->
121
                    <!--android:layout_width="100dp"-->
122
                    <!--android:layout_height="match_parent"-->
123
                    <!--android:padding="15dp"-->
124
                    <!--android:src="@drawable/addpic65"-->
125
                    <!--android:visibility="gone"/>-->
126
            <!--</LinearLayout>-->
127

128
            <!--<LinearLayout-->
129
                <!--android:id="@+id/ll_uploadPhoto"-->
130
                <!--android:layout_width="match_parent"-->
131
                <!--android:layout_height="100dp"-->
132
                <!--android:gravity="center"-->
133
                <!--android:background="@color/bg_row"-->
134
                <!--android:orientation="horizontal"-->
135
                <!--android:visibility="gone">-->
136

137
                <!--<ImageView-->
138
                    <!--android:id="@+id/uploadPhoto"-->
139
                    <!--android:layout_width="100dp"-->
140
                    <!--android:layout_height="match_parent"-->
141
                    <!--android:src="@drawable/addpic65" />-->
142
            <!--</LinearLayout>-->
143

144
        <LinearLayout
145
            android:id="@+id/ll_add_photo"
146
            android:layout_width="match_parent"
147
            android:layout_height="100dp"
148
            android:orientation="horizontal"
149
            android:background="@color/bg_row">
150

151
            <!--<ImageView-->
152
            <!--android:id="@+id/iv_photo1"-->
153
            <!--android:layout_width="100dp"-->
154
            <!--android:padding="16dp"-->
155
            <!--android:layout_height="match_parent"-->
156
            <!--android:src="@drawable/addpic65"/>-->
157
            <GridView
158
                android:id="@+id/noScrollgridview"
54
            <LinearLayout
55
                android:id="@+id/ll_add_photo"
159 56
                android:layout_width="match_parent"
160
                android:layout_height="wrap_content"
161
                android:layout_marginLeft="16dp"
162
                android:layout_marginTop="16dp"
163
                android:layout_marginRight="16dp"
164
                android:horizontalSpacing="3dp"
165
                android:numColumns="3"
166
                android:scrollbars="none"
167
                android:verticalSpacing="5dp" >
168
            </GridView>
169

170
        </LinearLayout>
57
                android:layout_height="100dp"
58
                android:background="@color/bg_row"
59
                android:orientation="horizontal">
60

61
                <GridView
62
                    android:id="@+id/noScrollgridview"
63
                    android:layout_width="match_parent"
64
                    android:layout_height="wrap_content"
65
                    android:layout_marginLeft="16dp"
66
                    android:layout_marginTop="16dp"
67
                    android:layout_marginRight="16dp"
68
                    android:horizontalSpacing="3dp"
69
                    android:numColumns="3"
70
                    android:scrollbars="none"
71
                    android:verticalSpacing="5dp"></GridView>
72

73
            </LinearLayout>
171 74

172 75
            <TextView
173 76
                android:layout_width="match_parent"
174 77
                android:layout_height="wrap_content"
175 78
                android:background="@color/white"
176
                android:text="(可选填,最多可上传三张)"
177 79
                android:paddingLeft="16dp"
178 80
                android:paddingRight="16dp"
179 81
                android:paddingBottom="8dp"
82
                android:text="(可选填,最多可上传三张)"
180 83
                android:textColor="@color/hintColor"
181 84
                android:textSize="16sp"
182
                android:visibility="gone"/>
85
                android:visibility="gone" />
183 86

184 87
            <View
185 88
                android:layout_width="match_parent"
186 89
                android:layout_height="0.5dp"
187
                android:background="@color/Line"/>
90
                android:background="@color/Line" />
91

188 92
            <View
189 93
                android:layout_width="fill_parent"
190 94
                android:layout_height="15dp"
191 95
                android:background="@color/activity_bgcolor" />
192 96

193
            <!--<View-->
194
                <!--android:layout_width="fill_parent"-->
195
                <!--android:layout_height="0.5dp"-->
196
                <!--android:layout_marginLeft="8dp"-->
197
                <!--android:layout_marginRight="8dp"-->
198
                <!--android:background="@color/in_line" />-->
199

200
            <!--<RelativeLayout-->
201
                <!--android:id="@+id/rl_name"-->
202
                <!--android:layout_marginLeft="8dp"-->
203
                <!--android:layout_marginRight="8dp"-->
204
                <!--android:layout_width="match_parent"-->
205
                <!--android:background="@color/bg_row"-->
206
                <!--android:layout_height="50dp">-->
207

208
                <!--<TextView-->
209
                    <!--android:id="@+id/tv_name"-->
210
                    <!--android:layout_width="wrap_content"-->
211
                    <!--android:layout_height="wrap_content"-->
212
                    <!--android:layout_alignParentLeft="true"-->
213
                    <!--android:layout_centerVertical="true"-->
214
                    <!--android:paddingBottom="5dp"-->
215
                    <!--android:paddingLeft="10dp"-->
216
                    <!--android:paddingRight="15dp"-->
217
                    <!--android:text="名称"-->
218
                    <!--android:textColor="@color/title_row"-->
219
                    <!--android:textSize="16sp" />-->
220

221
                <!--<EditText-->
222
                    <!--android:id="@+id/et_name"-->
223
                    <!--style="?android:attr/textViewStyle"-->
224
                    <!--android:layout_width="wrap_content"-->
225
                    <!--android:layout_height="wrap_content"-->
226
                    <!--android:layout_alignParentEnd="true"-->
227
                    <!--android:layout_alignParentRight="true"-->
228
                    <!--android:layout_centerVertical="true"-->
229
                    <!--android:layout_marginRight="15dp"-->
230
                    <!--android:background="@null"-->
231
                    <!--android:contentDescription="@null"-->
232
                    <!--android:paddingBottom="5dp"-->
233
                    <!--android:paddingRight="10dp"-->
234
                    <!--android:text="充电桩"-->
235
                    <!--android:textColor="@color/black"-->
236
                    <!--android:textColorHint="@color/hintColor"-->
237
                    <!--android:textSize="15sp" />-->
238

239
            <!--</RelativeLayout>-->
240

241

242

243

244
            <!--<View-->
245
                <!--android:layout_width="fill_parent"-->
246
                <!--android:layout_height="0.5dp"-->
247
                <!--android:layout_marginLeft="8dp"-->
248
                <!--android:layout_marginRight="8dp"-->
249
                <!--android:background="@color/in_line" />-->
250

251
            <!--<RelativeLayout-->
252
                <!--android:id="@+id/rl_suit_car"-->
253
                <!--android:layout_width="match_parent"-->
254
                <!--android:layout_marginLeft="8dp"-->
255
                <!--android:layout_marginRight="8dp"-->
256
                <!--android:layout_height="50dp"-->
257
                <!--android:background="@drawable/click_effect">-->
258

259
                <!--<TextView-->
260
                    <!--android:id="@+id/tv_service"-->
261
                    <!--android:layout_width="wrap_content"-->
262
                    <!--android:layout_height="wrap_content"-->
263
                    <!--android:layout_alignParentLeft="true"-->
264
                    <!--android:layout_centerVertical="true"-->
265
                    <!--android:paddingBottom="5dp"-->
266
                    <!--android:paddingLeft="10dp"-->
267
                    <!--android:paddingRight="15dp"-->
268
                    <!--android:text="服务费"-->
269
                    <!--android:textColor="@color/title_row"-->
270
                    <!--android:textSize="16sp" />-->
271

272
                <!--<EditText-->
273
                    <!--android:id="@+id/et_serviceCost"-->
274
                    <!--android:layout_width="wrap_content"-->
275
                    <!--android:layout_height="wrap_content"-->
276
                    <!--android:layout_alignParentEnd="true"-->
277
                    <!--android:layout_alignParentRight="true"-->
278
                    <!--android:layout_centerVertical="true"-->
279
                    <!--android:layout_marginRight="15dp"-->
280
                    <!--android:contentDescription="@null"-->
281
                    <!--android:background="@color/bg_row"-->
282
                    <!--android:gravity="center|right"-->
283
                    <!--android:hint="请您填写服务费"-->
284
                    <!--android:paddingBottom="5dp"-->
285
                    <!--android:paddingRight="10dp"-->
286
                    <!--android:text=""-->
287
                    <!--android:textColor="@color/black"-->
288
                    <!--android:textColorHint="@color/hintColor"-->
289
                    <!--android:textSize="15sp" />-->
290

291
                <!--&lt;!&ndash;<ImageView&ndash;&gt;-->
292
                    <!--&lt;!&ndash;android:id="@+id/iv_change_suit"&ndash;&gt;-->
293
                    <!--&lt;!&ndash;android:layout_width="20dp"&ndash;&gt;-->
294
                    <!--&lt;!&ndash;android:layout_height="match_parent"&ndash;&gt;-->
295
                    <!--&lt;!&ndash;android:layout_alignParentEnd="true"&ndash;&gt;-->
296
                    <!--&lt;!&ndash;android:layout_alignParentRight="true"&ndash;&gt;-->
297
                    <!--&lt;!&ndash;android:layout_centerVertical="true"&ndash;&gt;-->
298
                    <!--&lt;!&ndash;android:contentDescription="@null"&ndash;&gt;-->
299
                    <!--&lt;!&ndash;android:src="@drawable/grey_right" />&ndash;&gt;-->
300

301
            <!--</RelativeLayout>-->
302

303
            <!--<View-->
304
                <!--android:layout_width="fill_parent"-->
305
                <!--android:layout_height="0.5dp"-->
306
                <!--android:layout_marginLeft="8dp"-->
307
                <!--android:layout_marginRight="8dp"-->
308
                <!--android:background="@color/in_line" />-->
309

310
            <!--<RelativeLayout-->
311
                <!--android:id="@+id/rl_open"-->
312
                <!--android:layout_width="match_parent"-->
313
                <!--android:layout_marginLeft="8dp"-->
314
                <!--android:layout_marginRight="8dp"-->
315
                <!--android:background="@color/bg_row"-->
316
                <!--android:layout_height="50dp">-->
317

318
                <!--<TextView-->
319
                    <!--android:id="@+id/tv_open_title"-->
320
                    <!--android:layout_width="wrap_content"-->
321
                    <!--android:layout_height="wrap_content"-->
322
                    <!--android:layout_alignParentLeft="true"-->
323
                    <!--android:layout_centerVertical="true"-->
324
                    <!--android:paddingBottom="5dp"-->
325
                    <!--android:paddingLeft="10dp"-->
326
                    <!--android:paddingRight="15dp"-->
327
                    <!--android:text="停车场类型"-->
328
                    <!--android:textColor="@color/title_row"-->
329
                    <!--android:textSize="16sp" />-->
330

331
                <!--<Switch-->
332
                    <!--android:id="@+id/sw_parkLocation"-->
333
                    <!--android:layout_width="wrap_content"-->
334
                    <!--android:layout_height="wrap_content"-->
335
                    <!--android:layout_marginRight="25dp"-->
336
                    <!--android:textOn="地下"-->
337
                    <!--android:textOff="地上"-->
338
                    <!--android:layout_centerVertical="true"-->
339
                    <!--android:layout_alignParentRight="true"-->
340
                    <!--android:layout_alignParentEnd="true" />-->
341

342
            <!--</RelativeLayout>-->
343
            <!--<View-->
344
                <!--android:layout_width="fill_parent"-->
345
                <!--android:layout_height="0.5dp"-->
346
                <!--android:layout_marginLeft="8dp"-->
347
                <!--android:layout_marginRight="8dp"-->
348
                <!--android:background="@color/in_line" />-->
349

350
            <!--<RelativeLayout-->
351
                <!--android:id="@+id/rl_zhuanyou"-->
352
                <!--android:layout_width="match_parent"-->
353
                <!--android:layout_marginLeft="8dp"-->
354
                <!--android:layout_marginRight="8dp"-->
355
                <!--android:background="@color/bg_row"-->
356
                <!--android:layout_height="50dp">-->
357

358
                <!--<TextView-->
359
                    <!--android:id="@+id/tv_parkCost"-->
360
                    <!--android:layout_width="wrap_content"-->
361
                    <!--android:layout_height="wrap_content"-->
362
                    <!--android:layout_alignParentLeft="true"-->
363
                    <!--android:layout_centerVertical="true"-->
364
                    <!--android:paddingBottom="5dp"-->
365
                    <!--android:paddingLeft="10dp"-->
366
                    <!--android:paddingRight="15dp"-->
367
                    <!--android:text="停车费"-->
368
                    <!--android:textColor="@color/title_row"-->
369
                    <!--android:textSize="16sp" />-->
370

371
                <!--<EditText-->
372
                    <!--android:id="@+id/et_parkCost"-->
373
                    <!--style="?android:attr/textViewStyle"-->
374
                    <!--android:layout_width="245dp"-->
375
                    <!--android:layout_height="match_parent"-->
376
                    <!--android:layout_alignParentEnd="true"-->
377
                    <!--android:layout_alignParentRight="true"-->
378
                    <!--android:layout_centerVertical="true"-->
379
                    <!--android:layout_marginRight="15dp"-->
380
                    <!--android:gravity="center|right"-->
381
                    <!--android:background="@null"-->
382
                    <!--android:contentDescription="@null"-->
383
                    <!--android:paddingBottom="5dp"-->
384
                    <!--android:paddingRight="10dp"-->
385
                    <!--android:hint="请您填写停车费"-->
386
                    <!--android:textColor="@color/hintColor"-->
387
                    <!--android:textSize="15sp" />-->
388

389
            <!--</RelativeLayout>-->
390
            <!--<View-->
391
                <!--android:layout_width="fill_parent"-->
392
                <!--android:layout_height="0.5dp"-->
393
                <!--android:layout_marginLeft="8dp"-->
394
                <!--android:layout_marginRight="8dp"-->
395
                <!--android:background="@color/in_line" />-->
396
            <!--<View-->
397
                <!--android:layout_width="fill_parent"-->
398
                <!--android:layout_height="wrap_content"-->
399
                <!--android:background="@drawable/share_line" />-->
400 97

401 98
            <View
402 99
                android:layout_width="match_parent"
403 100
                android:layout_height="0.5dp"
404
                android:background="@color/Line"/>
101
                android:background="@color/Line" />
405 102

406 103
            <EditText
407 104
                android:id="@+id/et_alterinfo"
@ -409,39 +106,33 @@
409 106
                android:layout_height="150dp"
410 107
                android:background="@color/white"
411 108

109
                android:gravity="top|left"
412 110
                android:hint="请输入正确的站点信息..."
413
                android:textColorHint="@color/hintColor"
414 111
                android:paddingLeft="16dp"
415
                android:paddingRight="16dp"
416 112
                android:paddingTop="8dp"
113
                android:paddingRight="16dp"
417 114
                android:paddingBottom="8dp"
418
                android:textSize="15sp"
419
                android:gravity="top|left"
420 115
                android:text=""
421
                android:textColor="@color/title_row"/>
116
                android:textColor="@color/title_row"
117
                android:textColorHint="@color/hintColor"
118
                android:textSize="15sp" />
422 119

423 120
            <View
424 121
                android:layout_width="match_parent"
425 122
                android:layout_height="0.5dp"
426
                android:background="@color/Line"/>
427

428

429

430

431

123
                android:background="@color/Line" />
432 124

433 125
            <ImageView
434 126
                android:id="@+id/tv_one"
435 127
                android:layout_width="wrap_content"
436 128
                android:layout_height="wrap_content"
437 129
                android:layout_gravity="center"
438

439 130
                android:layout_marginTop="45dp"
440 131
                android:gravity="center"
441
                android:text="2分"
442 132
                android:padding="5dp"
443 133
                android:scaleType="fitXY"
444 134
                android:src="@drawable/icon_pointt"
135
                android:text="2分"
445 136
                android:textColor="#fff"
446 137
                android:visibility="gone" />
447 138
        </LinearLayout>
@ -450,21 +141,17 @@
450 141
    <RelativeLayout
451 142
        android:layout_width="match_parent"
452 143
        android:layout_height="match_parent">
144

453 145
        <TextView
454 146
            android:id="@+id/tv_submit"
455 147
            android:layout_width="match_parent"
456 148
            android:layout_height="45dp"
149
            android:layout_alignParentBottom="true"
150
            android:layout_centerHorizontal="true"
457 151
            android:background="@color/lvse"
152
            android:gravity="center"
458 153
            android:text="提 交"
459 154
            android:textColor="@color/white"
460
            android:textSize="17sp"
461
            android:gravity="center"
462
            android:layout_alignParentBottom="true"
463
            android:layout_centerHorizontal="true" />
155
            android:textSize="17sp" />
464 156
    </RelativeLayout>
465

466

467

468

469

470 157
</LinearLayout>

+ 1 - 1
app/src/main/res/layout/activity_main_map.xml

@ -933,7 +933,7 @@
933 933
        android:layout_alignParentBottom="true"
934 934
        android:background="@color/white"
935 935
        android:visibility="gone"
936
        tools:visibility="visible">
936
        tools:visibility="gone">
937 937
938 938
        <LinearLayout
939 939
            android:layout_width="match_parent"