|
372 | 372 | android:elevation="0dp" |
373 | 373 | android:gravity="center" |
374 | 374 | android:orientation="vertical" |
375 | | - android:paddingLeft="15dp" |
376 | | - android:paddingTop="15dp" |
377 | | - android:paddingRight="15dp"> |
| 375 | + android:paddingTop="15dp"> |
378 | 376 |
|
379 | 377 | <LinearLayout |
380 | 378 | android:layout_width="match_parent" |
381 | 379 | android:layout_height="wrap_content" |
382 | | - android:gravity="center|start"> |
| 380 | + android:gravity="center|start" |
| 381 | + android:paddingLeft="15dp" |
| 382 | + android:paddingRight="15dp"> |
383 | 383 |
|
384 | 384 | <ImageView |
385 | 385 | android:layout_width="15dp" |
|
402 | 402 | android:layout_width="match_parent" |
403 | 403 | android:layout_height="40dp" |
404 | 404 | android:layout_marginTop="5dp" |
| 405 | + android:paddingLeft="15dp" |
| 406 | + android:paddingRight="15dp" |
405 | 407 | android:text="启用 Android 12 通知栏风格" |
406 | 408 | android:textAllCaps="false" |
407 | 409 | android:textColor="@color/colorTextGray" |
|
413 | 415 | android:layout_marginBottom="10dp" |
414 | 416 | android:alpha="0.6" |
415 | 417 | android:lineSpacingExtra="6dp" |
| 418 | + android:paddingLeft="15dp" |
| 419 | + android:paddingRight="15dp" |
416 | 420 | android:text="无论任何版本,开启后都将使用 Android 12 原生通知图标方式为通知栏推送的通知图标增加外部圆形轮廓。\n目标为 Android 12 的系统将自动使用系统主题色着色。" |
417 | 421 | android:textColor="@color/colorTextDark" |
418 | 422 | android:textSize="12sp" /> |
| 423 | + |
| 424 | + <com.fankes.coloros.notify.ui.view.MaterialSwitch |
| 425 | + android:id="@+id/notify_panel_config_switch" |
| 426 | + android:layout_width="match_parent" |
| 427 | + android:layout_height="40dp" |
| 428 | + android:layout_marginTop="5dp" |
| 429 | + android:paddingLeft="15dp" |
| 430 | + android:paddingRight="15dp" |
| 431 | + android:text="自定义通知面板背景透明度" |
| 432 | + android:textAllCaps="false" |
| 433 | + android:textColor="@color/colorTextGray" |
| 434 | + android:textSize="15sp" /> |
| 435 | + |
| 436 | + <androidx.appcompat.widget.AppCompatSeekBar |
| 437 | + android:id="@+id/notify_panel_config_seekbar" |
| 438 | + android:layout_width="match_parent" |
| 439 | + android:layout_height="40dp" |
| 440 | + android:layout_marginLeft="5dp" |
| 441 | + android:layout_marginTop="5dp" |
| 442 | + android:layout_marginRight="5dp" |
| 443 | + android:max="255" |
| 444 | + android:min="0" /> |
| 445 | + |
| 446 | + <TextView |
| 447 | + android:id="@+id/notify_panel_config_text" |
| 448 | + android:layout_width="wrap_content" |
| 449 | + android:layout_height="wrap_content" |
| 450 | + android:ellipsize="end" |
| 451 | + android:gravity="center" |
| 452 | + android:maxWidth="100dp" |
| 453 | + android:paddingTop="5dp" |
| 454 | + android:paddingBottom="15dp" |
| 455 | + android:singleLine="true" |
| 456 | + android:text="当前 - %1" |
| 457 | + android:textColor="@color/colorTextGray" |
| 458 | + android:textSize="14sp" /> |
| 459 | + |
| 460 | + <TextView |
| 461 | + android:layout_width="match_parent" |
| 462 | + android:layout_height="wrap_content" |
| 463 | + android:layout_marginBottom="10dp" |
| 464 | + android:alpha="0.6" |
| 465 | + android:lineSpacingExtra="6dp" |
| 466 | + android:paddingLeft="15dp" |
| 467 | + android:paddingRight="15dp" |
| 468 | + android:text="开启自定义功能后,你可以拖拽滑动条来调整通知面板的透明度,0 为全透明,255 为不透明。" |
| 469 | + android:textColor="@color/colorTextDark" |
| 470 | + android:textSize="12sp" /> |
419 | 471 | </LinearLayout> |
420 | 472 |
|
421 | 473 | <LinearLayout |
|
0 commit comments