48
            <TextView
49
                android:id="@+id/sv_show_comment_count_tv"
50
                android:layout_width="wrap_content"
51
                android:layout_height="wrap_content"
52
                android:text="1230w"
53
                android:textSize="12sp" />
54
55
        </LinearLayout>
56
57
        <LinearLayout
58
            android:id="@+id/sv_show_like_ll"
59
            android:layout_width="wrap_content"
60
            android:layout_height="30dp"
61
            android:layout_centerVertical="true"
62
            android:layout_marginRight="15dp"
63
            android:layout_toStartOf="@+id/sv_show_comment_count_ll"
64
            android:gravity="center_vertical">
65
66
            <ImageView
67
                android:id="@+id/sv_show_like_img"
68
                android:layout_width="30dp"
69
                android:layout_height="30dp"
70
                android:layout_centerVertical="true"
71
                android:background="#fff" />
72
73
            <TextView
74
                android:id="@+id/sv_show_like_tv"
75
                android:layout_width="wrap_content"
76
                android:layout_height="wrap_content"
77
                android:text="12我30w"
78
                android:textSize="12sp" />
79
80
        </LinearLayout>
81
82
        <LinearLayout
83
            android:id="@+id/sv_show_comment_ll"
84
            android:layout_width="match_parent"
85
            android:layout_height="match_parent"
86
            android:layout_centerVertical="true"
87
            android:layout_marginRight="15dp"
88
            android:layout_toStartOf="@+id/sv_show_like_ll"
89
            android:gravity="center_vertical">
90
91
            <ImageView
92
                android:layout_width="30dp"
93
                android:layout_height="30dp"
94
                android:layout_centerVertical="true"
95
                android:layout_marginLeft="15dp"
96
                android:background="#fff" />
97
98
            <TextView
99
                android:layout_width="wrap_content"
100
                android:layout_height="wrap_content"
101
                android:text="写评论"
102
                android:textSize="12sp" />
103
104
        </LinearLayout>
105
106
    </RelativeLayout>
107
108
    <View
109
        android:layout_width="match_parent"
110
        android:layout_height="1dp"
111
        android:layout_above="@+id/sv_show_bottom"
112
        android:background="#505050" />
113
114
    <TextView
115
        android:id="@+id/sv_show_tvcon"
116
        android:layout_width="match_parent"
117
        android:layout_height="wrap_content"
118
        android:layout_above="@+id/sv_show_bottom"
119
        android:layout_marginLeft="39dp"
120
        android:layout_marginRight="39dp"
121
        android:layout_marginBottom="23dp"
122
        android:ellipsize="end"
123
        android:maxLines="3"
124
        android:text="3-超出三行的,点击文字,上滑弹窗,显示出所有文字内容,根据内容自适应高度,最高为一半屏幕高度,字数超高,以滚动条滑动显示。3-超出三行的,点击文字,上滑弹窗,显示出所有文字内容,根据内容自适应高度,最高为一半屏幕高度,字数超高,以滚动条滑动显示。"
125
        android:textSize="14sp" />
126
127
    <View
128
        android:id="@+id/sv_show_tvcon_more"
129
        android:layout_width="30dp"
130
        android:layout_height="30dp"
131
        android:layout_above="@+id/sv_show_bottom"
132
        android:layout_alignParentEnd="true"
133
        android:layout_marginBottom="28dp"
134
        android:background="@color/__picker_black_40" />
135
136
    <RelativeLayout
137
        android:id="@+id/sv_show_user_info"
138
        android:layout_width="wrap_content"
139
        android:layout_height="34dp"
140
        android:layout_above="@+id/sv_show_tvcon"
141
        android:layout_marginLeft="15dp"
142
        android:layout_marginBottom="5dp"
143
        android:background="#2ff">
144
145
        <ImageView
146
            android:id="@+id/sv_show_user_avatar"
147
            android:layout_width="20dp"
148
            android:layout_height="20dp"
149
            android:layout_centerVertical="true"
150
            android:background="#fff" />
151
152
        <TextView
153
            android:id="@+id/sv_show_user_name"
154
            android:layout_width="wrap_content"
155
            android:layout_height="wrap_content"
156
            android:layout_marginLeft="5dp"
157
            android:layout_toEndOf="@+id/sv_show_user_avatar"
158
            android:text="adsdasasdad"
159
            android:textColor="#fff"
160
            android:textSize="12sp" />
161
162
        <TextView
163
            android:id="@+id/sv_show_user_time"
164
            android:layout_width="wrap_content"
165
            android:layout_height="wrap_content"
166
            android:layout_below="@+id/sv_show_user_name"
167
            android:layout_alignLeft="@+id/sv_show_user_name"
168
            android:text="adsdasasdad"
169
            android:textColor="#fff"
170
            android:textSize="12sp" />
171
    </RelativeLayout>
172
173
174
    <LinearLayout
175
        android:id="@+id/sv_show_topic"
176
        android:layout_width="wrap_content"
177
        android:layout_height="30dp"
178
        android:layout_above="@+id/sv_show_user_info"
179
        android:layout_marginStart="15dp"
180
        android:layout_marginEnd="15dp"
181
        android:layout_marginBottom="10dp"
182
        android:background="#b3303030"
183
        android:gravity="center_vertical">
184
185
        <View
186
            android:layout_width="12dp"
187
            android:layout_height="12dp"
188
            android:layout_marginStart="12dp"
189
            android:layout_marginEnd="4dp"
190
            android:background="#fff" />
191
192
        <TextView
193
            android:id="@+id/sv_show_topic_con"
194
            android:layout_width="wrap_content"
195
            android:layout_height="wrap_content"
196
            android:layout_marginRight="12dp"
197
            android:ellipsize="end"
198
            android:maxLines="1"
199
            android:text="显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容"
200
            android:textColor="#fff"
201
            android:textSize="11sp" />
202
    </LinearLayout>
203
204
</merge>

+ 74 - 0
app/src/main/res/layout/view_show_comment.xml

@ -0,0 +1,74 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="wrap_content"
5
    android:background="@drawable/bg_bottom_dialog">
6
7
    <TextView
8
        android:id="@+id/show_comment_title"
9
        android:layout_width="wrap_content"
10
        android:layout_height="wrap_content"
11
        android:layout_centerHorizontal="true"
12
        android:layout_marginTop="10dp"
13
        android:text="12sp12sp12sp"
14
        android:textColor="#c2c2c2"
15
        android:textSize="14sp" />
16
17
18
    <View
19
        android:id="@+id/show_comment_close"
20
        android:layout_width="22dp"
21
        android:layout_height="22dp"
22
        android:layout_alignParentEnd="true"
23
        android:layout_marginTop="9dp"
24
        android:layout_marginEnd="14dp"
25
        android:background="#fff" />
26
27
    <View
28
        android:layout_width="match_parent"
29
        android:layout_height="1dp"
30
        android:layout_marginTop="40dp"
31
        android:background="#505050" />
32
33
    <android.support.v7.widget.RecyclerView
34
        android:id="@+id/show_comment_lv"
35
        android:layout_width="wrap_content"
36
        android:layout_height="320dp"
37
        android:layout_marginBottom="54dp"
38
        android:layout_marginTop="40dp" />
39
40
    <LinearLayout
41
        android:layout_width="match_parent"
42
        android:layout_height="wrap_content"
43
        android:layout_below="@+id/show_comment_lv"
44
        android:background="#535353"
45
        android:layout_marginTop="-54dp"
46
        android:gravity="center_vertical"
47
        android:minHeight="54dp">
48
49
        <EditText
50
            android:id="@+id/show_comment_ed"
51
            android:layout_width="0dp"
52
            android:layout_height="wrap_content"
53
            android:layout_marginStart="14dp"
54
            android:layout_weight="1"
55
            android:background="@drawable/bg_comment_report"
56
            android:hint="写评论"
57
            android:minHeight="30dp"
58
            android:paddingStart="14dp"
59
            android:paddingEnd="14dp"
60
            android:textColorHint="#7e7e7e" />
61
62
        <TextView
63
            android:id="@+id/show_comment_publish"
64
            android:layout_width="wrap_content"
65
            android:layout_height="match_parent"
66
            android:gravity="center"
67
            android:paddingStart="13dp"
68
            android:paddingEnd="13dp"
69
            android:text="发布"
70
            android:textColor="#7e7e7e"
71
            android:textSize="14sp" />
72
    </LinearLayout>
73
74
</RelativeLayout>

+ 13 - 0
app/src/main/res/layout/view_show_view.xml

@ -0,0 +1,13 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent">
5
6
    <ImageView
7
        android:layout_width="match_parent"
8
        android:layout_height="match_parent"
9
        android:background="#fff0" />
10
11
    <include layout="@layout/view_show_bottom" />
12
13
</RelativeLayout>

+ 15 - 0
app/src/main/res/layout/view_show_zoom.xml

@ -0,0 +1,15 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent">
5
6
7
    <com.electric.chargingpile.widge.photoview.ZoomingViewpager
8
        android:id="@+id/view_show_zoomingphoto"
9
        android:layout_width="match_parent"
10
        android:layout_height="match_parent" />
11
12
13
    <include layout="@layout/view_show_bottom" />
14
15
</RelativeLayout>

+ 2 - 0
app/src/main/res/values/color.xml

@ -170,6 +170,8 @@
170 170
    <color name="color_888888">#888888</color>
171 171
    <color name="color_fb9349">#fb9349</color>
172 172

173
    <color name="sv_black">#FF000000</color>
174
    <color name="sv_white">#FFFFFF</color>
173 175

174 176

175 177


+ 12 - 0
app/src/main/res/values/strings.xml

@ -192,4 +192,16 @@
192 192
193 193
    <string name="refund_tip">退款说明:\n1、可退款金额为实际充值金额,不含充值赠送、添加站点赠送和活动赠送金额。申请退款时,赠送金额将清零,请慎重选择;\n2、退款过程中,账户将被冻结,无法充值,使用支付宝免密支付充电不受影响;\n3、微信充值订单6个月内,支付宝充值订单3个月内将原路返回,超出时间我们将联系您取得新的退款方式;\n4、退款将于3-7个工作日内完成,请耐心等待。</string>
194 194
195
196
    <string name="refresh_pull_to_refresh">Slide down to refresh</string>
197
    <string name="refresh_release_to_refresh">Release to refresh</string>
198
    <string name="refresh_refreshing">Refreshing...</string>
199
    <string name="refresh_succeed">Refreshed</string>
200
    <string name="refresh_fail">Refreshing failed</string>
201
    <string name="refresh_pullup_to_load">Slide up to upload more</string>
202
    <string name="refresh_release_to_load">Release to upload</string>
203
    <string name="refresh_loading">Loading...</string>
204
    <string name="refresh_load_succeed">Loading succeeded</string>
205
    <string name="refresh_load_succeed_nomore">That\'s All!</string>
206
    <string name="refresh_load_fail">Loading failed</string>
195 207
</resources>

+ 30 - 9
app/src/main/res/values/styles.xml

@ -1,4 +1,5 @@
1 1
<resources>
2

2 3
    <style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
3 4
        <item name="colorPrimary">@color/colorPrimary</item>
4 5
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
@ -55,18 +56,18 @@
55 56
    <style name="Widget.ProgressBar.RegularProgressBar">
56 57
        <item name="android:indeterminateOnly">false</item>
57 58
        <item name="android:progressDrawable">@drawable/progressbar</item>
58
        <item name="android:indeterminateDrawable">@android:drawable/progress_indeterminate_horizontal</item>
59
        <item name="android:indeterminateDrawable">
60
            @android:drawable/progress_indeterminate_horizontal
61
        </item>
59 62
        <item name="android:minHeight">1dip</item>
60 63
        <item name="android:maxHeight">10dip</item>
61 64
    </style>
62 65

63 66

64
        <!--<style name="MyRatingBar" parent="@android:style/Widget.RatingBar">-->
65
            <!--<item name="android:progressDrawable">@drawable/circle_rating_bar_full</item>-->
66

67
        <!--</style>-->
68

67
    <!--<style name="MyRatingBar" parent="@android:style/Widget.RatingBar">-->
68
    <!--<item name="android:progressDrawable">@drawable/circle_rating_bar_full</item>-->
69 69

70
    <!--</style>-->
70 71

71 72

72 73
    <style name="roomRatingBar" parent="@android:style/Widget.RatingBar">
@ -82,8 +83,6 @@
82 83
    </style>
83 84

84 85

85

86

87 86
    <style name="appointent_time_item_style">
88 87
        <item name="android:textColor">@drawable/appointent_item_tv_color_selector</item>
89 88
        <item name="android:layout_width">fill_parent</item>
@ -191,16 +190,19 @@
191 190
        <item name="android:windowBackground">@android:color/transparent</item>
192 191
        <item name="android:windowContentOverlay">@null</item>
193 192
    </style>
194
    <style name="dialogAnim" parent="android:Animation" >
193

194
    <style name="dialogAnim" parent="android:Animation">
195 195
        <item name="android:windowEnterAnimation">@anim/dialog_show</item>
196 196
        <item name="android:windowExitAnimation">@anim/dialog_dismiss</item>
197 197
    </style>
198

198 199
    <style name="divider_horizontal"><!-- 水平分割线 -->
199 200
        <item name="android:layout_width">fill_parent</item>
200 201
        <item name="android:layout_height">0.01dp</item>
201 202
        <item name="android:background">@android:color/darker_gray</item>
202 203
        <item name="android:orientation">vertical</item>
203 204
    </style>
205

204 206
    <style name="divider_vertical"><!-- 垂直分割线 -->
205 207
        <item name="android:layout_width">0.01dp</item>
206 208
        <item name="android:layout_height">fill_parent</item>
@ -220,6 +222,25 @@
220 222
        <item name="android:windowCloseOnTouchOutside">false</item>
221 223
    </style>
222 224

225

226
    <style name="bottomDialogStyle">
227
        <item name="android:windowBackground">@android:color/transparent</item>
228
        <item name="android:windowContentOverlay">@null</item>
229
        <item name="android:windowIsFloating">true</item>
230
        <item name="android:windowFrame">@null</item>
231
        <item name="android:backgroundDimEnabled">false</item>
232
        <item name="android:windowNoTitle">true</item>
233
        <item name="android:windowIsTranslucent">true</item>
234
        <item name="android:windowCloseOnTouchOutside">true</item>
235
        <item name="android:windowAnimationStyle">@style/BottomDialogAnimation</item>
236
    </style>
237

238
    <style name="BottomDialogAnimation">
239
        <item name="android:windowEnterAnimation">@anim/bottom_in_anim</item>
240
        <item name="android:windowExitAnimation">@anim/bottom_out_anim</item>
241
    </style>
242

243

223 244
    <style name="AnimationPreview">
224 245
        <item name="android:windowEnterAnimation">@anim/fade_in</item>
225 246
        <item name="android:windowExitAnimation">@anim/fade_out</item>

用户隐私协议添加 · b908fbce45 - Gogs: Go Git Service
ソースを参照

用户隐私协议添加

huyuguo 6 年 前
コミット
b908fbce45
共有1 個のファイルを変更した0 個の追加3 個の削除を含む
  1. 0 3
      app/src/main/java/com/electric/chargingpile/activity/MainMapActivity.java

+ 0 - 3
app/src/main/java/com/electric/chargingpile/activity/MainMapActivity.java

@ -3124,9 +3124,6 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
3124 3124
                rl_privacy_protocol.setVisibility(View.GONE);
3125 3125
                break;
3126 3126
            case R.id.private_protocol_web:
3127
                sharedPreferencesUtil.putBoolean("cdz_private_protocol", true);
3128
                rl_privacy_protocol.setVisibility(View.GONE);
3129
3130 3127
                intent = new Intent(getApplication(), IntegralDescriptionActivity.class);
3131 3128
                intent.putExtra("url", "http://evcharge.cc/pc/agreement.html");
3132 3129
                startActivity(intent);