ass="diff-counter count ui left"> BIN app/src/main/res/drawable-mdpi/app_publish_pic_icon.png
Просмотреть файл

BIN
app/src/main/res/drawable-mdpi/app_publish_qa_icon.png


BIN
app/src/main/res/drawable-mdpi/app_publish_video_icon.png


app/src/main/res/drawable-mdpi/app_publish_item_qa.png → app/src/main/res/drawable-mdpi/app_qa_icon.png


BIN
app/src/main/res/drawable-xhdpi/app_publish_close_icon.png


BIN
app/src/main/res/drawable-xhdpi/app_publish_pic_icon.png


BIN
app/src/main/res/drawable-xhdpi/app_publish_qa_icon.png


BIN
app/src/main/res/drawable-xhdpi/app_publish_video_icon.png


app/src/main/res/drawable-xhdpi/app_publish_item_qa.png → app/src/main/res/drawable-xhdpi/app_qa_icon.png


app/src/main/res/drawable-hdpi/app_publish_item_cancel.png → app/src/main/res/drawable-xxhdpi/app_publish_close_icon.png


app/src/main/res/drawable-hdpi/app_publish_item_pic.png → app/src/main/res/drawable-xxhdpi/app_publish_pic_icon.png


BIN
app/src/main/res/drawable-xxhdpi/app_publish_qa_icon.png


app/src/main/res/drawable-hdpi/app_publish_item_video.png → app/src/main/res/drawable-xxhdpi/app_publish_video_icon.png


app/src/main/res/drawable-xxhdpi/app_publish_item_qa.png → app/src/main/res/drawable-xxhdpi/app_qa_icon.png


BIN
app/src/main/res/drawable-xxxhdpi/app_publish_close_icon.png


BIN
app/src/main/res/drawable-xxxhdpi/app_publish_pic_icon.png


BIN
app/src/main/res/drawable-xxxhdpi/app_publish_qa_icon.png


BIN
app/src/main/res/drawable-xxxhdpi/app_publish_video_icon.png


app/src/main/res/drawable-xxxhdpi/app_publish_item_qa.png → app/src/main/res/drawable-xxxhdpi/app_qa_icon.png


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

@ -24,6 +24,6 @@
24 24
        android:layout_alignParentBottom="true"
25 25
        android:layout_marginRight="15dp"
26 26
        android:layout_marginBottom="22dp"
27
        android:src="@drawable/app_publish_item_qa"/>
27
        android:src="@drawable/app_qa_icon"/>
28 28
29 29
</RelativeLayout>

+ 18 - 18
app/src/main/res/layout/activity_publish_items.xml

@ -36,16 +36,16 @@
36 36

37 37
        <ImageView
38 38
            android:id="@+id/share_publish_close"
39
            android:layout_width="28dp"
40
            android:layout_height="28dp"
39
            android:layout_width="wrap_content"
40
            android:layout_height="wrap_content"
41 41
            android:layout_above="@+id/rule_publish"
42 42
            android:layout_centerHorizontal="true"
43
            android:layout_margin="10dp"
44
            android:background="@drawable/app_publish_item_cancel" />
43
            android:padding="10dp"
44
            android:background="@drawable/app_publish_close_icon" />
45 45

46 46
        <LinearLayout
47 47
            android:id="@+id/publish_picture"
48
            android:layout_width="50dp"
48
            android:layout_width="wrap_content"
49 49
            android:layout_height="wrap_content"
50 50
            android:layout_above="@+id/share_publish_close"
51 51
            android:layout_centerHorizontal="true"
@ -56,9 +56,9 @@
56 56
            android:orientation="vertical">
57 57

58 58
            <ImageView
59
                android:layout_width="50dp"
60
                android:layout_height="50dp"
61
                android:background="@drawable/app_publish_item_pic" />
59
                android:layout_width="wrap_content"
60
                android:layout_height="wrap_content"
61
                android:background="@drawable/app_publish_pic_icon" />
62 62

63 63
            <TextView
64 64
                android:layout_width="wrap_content"
@ -71,11 +71,11 @@
71 71

72 72
        <LinearLayout
73 73
            android:id="@+id/publish_video"
74
            android:layout_width="50dp"
74
            android:layout_width="wrap_content"
75 75
            android:layout_height="wrap_content"
76 76
            android:layout_above="@+id/share_publish_close"
77 77
            android:layout_marginTop="40dp"
78
            android:layout_marginRight="30dp"
78
            android:layout_marginRight="40dp"
79 79
            android:layout_marginBottom="40dp"
80 80
            android:layout_toLeftOf="@+id/publish_picture"
81 81
            android:gravity="center"
@ -83,9 +83,9 @@
83 83
            android:orientation="vertical">
84 84

85 85
            <ImageView
86
                android:layout_width="50dp"
87
                android:layout_height="50dp"
88
                android:background="@drawable/app_publish_item_video" />
86
                android:layout_width="wrap_content"
87
                android:layout_height="wrap_content"
88
                android:background="@drawable/app_publish_video_icon" />
89 89

90 90
            <TextView
91 91
                android:layout_width="wrap_content"
@ -98,10 +98,10 @@
98 98

99 99
        <LinearLayout
100 100
            android:id="@+id/publish_qa"
101
            android:layout_width="50dp"
101
            android:layout_width="wrap_content"
102 102
            android:layout_height="wrap_content"
103 103
            android:layout_above="@+id/share_publish_close"
104
            android:layout_marginLeft="30dp"
104
            android:layout_marginLeft="40dp"
105 105
            android:layout_marginTop="40dp"
106 106
            android:layout_marginBottom="40dp"
107 107
            android:layout_toRightOf="@+id/publish_picture"
@ -110,9 +110,9 @@
110 110
            android:orientation="vertical">
111 111

112 112
            <ImageView
113
                android:layout_width="50dp"
114
                android:layout_height="50dp"
115
                android:background="@drawable/app_publish_item_qa" />
113
                android:layout_width="wrap_content"
114
                android:layout_height="wrap_content"
115
                android:background="@drawable/app_publish_qa_icon" />
116 116

117 117
            <TextView
118 118
                android:layout_width="wrap_content"

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

@ -22,6 +22,6 @@
22 22
        android:layout_alignParentBottom="true"
23 23
        android:layout_marginRight="15dp"
24 24
        android:layout_marginBottom="71dp"
25
        android:src="@drawable/app_publish_item_qa"/>
25
        android:src="@drawable/app_qa_icon"/>
26 26
27 27
</RelativeLayout>

优化代码 · 199dd26370 - Gogs: Go Git Service
hy лет назад: 2
Родитель
Сommit
199dd26370

+ 0 - 16
app/src/main/java/com/electric/chargingpile/activity/AlterOneActivity.java

867
                        }
867
                        }
868
                    }
868
                    }
869
                });
869
                });
870

871

872
      /*  if (isPermissionOK()) {
873
            callGallery();
874
            // Have permission, do the thing!
875
//            Toast.makeText(this, "TODO: Camera things", Toast.LENGTH_LONG).show();
876
//            ifTimeout();
877
        } else {
878
            // Ask for one permission
879
            EasyPermissions.requestPermissions(
880
                    this, "充电桩想要获取您的图片读取权限,是否允许?",
881
                    RC_ALBUM_PERM,
882
                    Manifest.permission.CAMERA,
883
                    Manifest.permission.WRITE_EXTERNAL_STORAGE,
884
                    Manifest.permission.READ_EXTERNAL_STORAGE);
885
        }*/
886
    }
870
    }
887

871

888
    private boolean isPermissionOK() {
872
    private boolean isPermissionOK() {

+ 0 - 14
app/src/main/java/com/electric/chargingpile/activity/UserInfoActivity.java

520
            @Override
520
            @Override
521
            public void onClick(View view) {
521
            public void onClick(View view) {
522
                openPhotoAlbum();
522
                openPhotoAlbum();
523
524
                popupWindow.dismiss();
523
                popupWindow.dismiss();
525
            }
524
            }
526
        });
525
        });
678
                        }
677
                        }
679
                    }
678
                    }
680
                });
679
                });
681
682
        if (hasCameraPermission()) {
683
            showWindow();
684
        } else {
685
            // Ask for one permission
686
            EasyPermissions.requestPermissions(
687
                    this,
688
                    "充电桩需要获取您相关权限,是否允许?",
689
                    RC_CAMERA_PERM,
690
                    Manifest.permission.CAMERA,
691
                    Manifest.permission.WRITE_EXTERNAL_STORAGE,
692
                    Manifest.permission.READ_EXTERNAL_STORAGE);
693
        }
694
    }
680
    }
695
681
696
    private boolean hasCameraPermission() {
682
    private boolean hasCameraPermission() {

+ 6 - 6
app/src/main/java/com/electric/chargingpile/application/MainApplication.java

103
    public static String firstPoint = "";
103
    public static String firstPoint = "";
104
    public static Boolean firstSsyd;
104
    public static Boolean firstSsyd;
105
    public static String password = "";
105
    public static String password = "";
106
    public static String url = "http://59.110.68.162";// 充电桩测试环境
107
    public static String pic_url = "http://59.110.68.162/zhannew/uploadfile/";
108
//    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
109
//    public static String pic_url = "http://cdz.evcharge.cc/zhannew/uploadfile/";
106
//    public static String url = "http://59.110.68.162";// 充电桩测试环境
107
//    public static String pic_url = "http://59.110.68.162/zhannew/uploadfile/";
108
    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
109
    public static String pic_url = "http://cdz.evcharge.cc/zhannew/uploadfile/";
110

110

111
        public static String urlNew = "http://123.56.67.7:83/api/0300";// 一电测试环境
112
//    public static String urlNew = "https://api.touchev.com:83/api/0300";// 一电正式环境
111
//        public static String urlNew = "http://123.56.67.7:83/api/0300";// 一电测试环境
112
    public static String urlNew = "https://api.touchev.com:83/api/0300";// 一电正式环境
113

113

114
    public static String d1evUrl = "https://d1ev-new.yiduyongche.com";// 评论上传视频
114
    public static String d1evUrl = "https://d1ev-new.yiduyongche.com";// 评论上传视频
115
    public static String CDN = "https://cdn-fs.d1ev.com";
115
    public static String CDN = "https://cdn-fs.d1ev.com";