d class="lines-num lines-num-old"> 22
23
        int i;
24
        for (i = 0; i < from.length; ++i) {
25
            for (num %= 8; num < 8; num += 6) {
26
                switch (num) {
27
                    case 0:
28
                        currentByte = (char) (from[i] & lead6byte);
29
                        currentByte = (char) (currentByte >>> 2);
30
                    case 1:
31
                    case 3:
32
                    case 5:
33
                    default:
34
                        break;
35
                    case 2:
36
                        currentByte = (char) (from[i] & last6byte);
37
                        break;
38
                    case 4:
39
                        currentByte = (char) (from[i] & last4byte);
40
                        currentByte = (char) (currentByte << 2);
41
                        if (i + 1 < from.length) {
42
                            currentByte = (char) (currentByte | (from[i + 1] & lead2byte) >>> 6);
43
                        }
44
                        break;
45
                    case 6:
46
                        currentByte = (char) (from[i] & last2byte);
47
                        currentByte = (char) (currentByte << 4);
48
                        if (i + 1 < from.length) {
49
                            currentByte = (char) (currentByte | (from[i + 1] & lead4byte) >>> 4);
50
                        }
51
                }
52
53
                to.append(encodeTable[currentByte]);
54
            }
55
        }
56
57
        if (to.length() % 4 != 0) {
58
            for (i = 4 - to.length() % 4; i > 0; --i) {
59
                to.append("=");
60
            }
61
        }
62
63
        return to.toString();
64
    }
65
}

+ 9 - 4
app/src/main/res/layout/activity_car_owner_certificate.xml

@ -191,6 +191,8 @@
191 191
                android:layout_width="match_parent"
192 192
                android:layout_height="wrap_content"
193 193
                android:layout_marginTop="5dp"
194
                android:visibility="gone"
195
                tools:visibility="visible"
194 196
                android:layout_marginBottom="50dp"
195 197
                android:orientation="vertical"
196 198
                app:layout_constraintTop_toBottomOf="@+id/driving_license">
@ -204,12 +206,13 @@
204 206
                    <TextView
205 207
                        android:layout_width="90dp"
206 208
                        android:layout_height="wrap_content"
207
                        android:text="* 车牌号"
209
                        android:text="车牌号"
208 210
                        android:textColor="#0D1120"
209 211
                        android:textSize="14sp"
210 212
                        android:textStyle="bold" />
211 213
212 214
                    <EditText
215
                        android:id="@+id/plate_num"
213 216
                        android:layout_width="0dp"
214 217
                        android:layout_height="match_parent"
215 218
                        android:layout_weight="1"
@ -235,12 +238,13 @@
235 238
                    <TextView
236 239
                        android:layout_width="90dp"
237 240
                        android:layout_height="wrap_content"
238
                        android:text="* 发动机号"
241
                        android:text="发动机号"
239 242
                        android:textColor="#0D1120"
240 243
                        android:textSize="14sp"
241 244
                        android:textStyle="bold" />
242 245
243 246
                    <EditText
247
                        android:id="@+id/engine_num"
244 248
                        android:layout_width="0dp"
245 249
                        android:layout_height="match_parent"
246 250
                        android:layout_weight="1"
@ -266,17 +270,18 @@
266 270
                    <TextView
267 271
                        android:layout_width="90dp"
268 272
                        android:layout_height="wrap_content"
269
                        android:text="注册时间"
273
                        android:text="注册日期"
270 274
                        android:textColor="#0D1120"
271 275
                        android:textSize="14sp"
272 276
                        android:textStyle="bold" />
273 277
274 278
                    <EditText
279
                        android:id="@+id/register_date"
275 280
                        android:layout_width="0dp"
276 281
                        android:layout_height="match_parent"
277 282
                        android:layout_weight="1"
278 283
                        android:background="@null"
279
                        android:hint="请输入有效日期"
284
                        android:hint="请输入注册日期"
280 285
                        android:inputType="text"
281 286
                        android:textColor="#0D1120"
282 287
                        android:textColorHint="#CBCBCB"

Update RoutePlanMapScreenDialogFragment.java · ced4c555d3 - Gogs: Go Git Service
Просмотр исходного кода

Update RoutePlanMapScreenDialogFragment.java

huyuguo лет назад: 7
Родитель
Сommit
ced4c555d3

+ 1 - 1
app/src/main/java/com/electric/chargingpile/fragment/RoutePlanMapScreenDialogFragment.java

@ -50,7 +50,7 @@ public class RoutePlanMapScreenDialogFragment extends DialogFragment implements
50 50
        // 布局属性位于整个窗口底部
51 51
        layoutParams.gravity = Gravity.BOTTOM;
52 52
        // 布局属性宽度填充整个窗口,默认是有margin的
53
//        layoutParams.width = WindowManager.LayoutParams.WRAP_CONTENT;
53
        layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT;
54 54
        window.setAttributes(layoutParams);
55 55
56 56
        initDialog();