更新
This commit is contained in:
5
app/src/main/res/color/checkout_redeem_text.xml
Normal file
5
app/src/main/res/color/checkout_redeem_text.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:color="#999999" />
|
||||
<item android:color="@color/cart_orange" />
|
||||
</selector>
|
||||
5
app/src/main/res/color/fault_filter_text.xml
Normal file
5
app/src/main/res/color/fault_filter_text.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="@android:color/white" android:state_selected="true" />
|
||||
<item android:color="@color/fault_filter_default" />
|
||||
</selector>
|
||||
5
app/src/main/res/color/fault_report_option_new_text.xml
Normal file
5
app/src/main/res/color/fault_report_option_new_text.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:color="@android:color/white" />
|
||||
<item android:color="#666666" />
|
||||
</selector>
|
||||
7
app/src/main/res/color/fault_report_type_text.xml
Normal file
7
app/src/main/res/color/fault_report_type_text.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:color="@android:color/white"
|
||||
android:state_selected="true" />
|
||||
<item android:color="@color/fault_report_type_text_default" />
|
||||
</selector>
|
||||
4
app/src/main/res/color/login_updated_code_text.xml
Normal file
4
app/src/main/res/color/login_updated_code_text.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:color="#666666"/>
|
||||
<item android:color="#FF6900"/>
|
||||
</selector>
|
||||
4
app/src/main/res/color/my_order_tab_text.xml
Normal file
4
app/src/main/res/color/my_order_tab_text.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:color="#FF6900" />
|
||||
<item android:color="#666666" />
|
||||
</selector>
|
||||
BIN
app/src/main/res/drawable-xhdpi/cart_checked.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/cart_checked.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 549 B |
BIN
app/src/main/res/drawable-xhdpi/cart_delete.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/cart_delete.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 332 B |
BIN
app/src/main/res/drawable-xhdpi/cart_goods_bowl.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/cart_goods_bowl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
BIN
app/src/main/res/drawable-xhdpi/cart_goods_breakfast.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/cart_goods_breakfast.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
BIN
app/src/main/res/drawable-xhdpi/cart_location.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/cart_location.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 627 B |
BIN
app/src/main/res/drawable-xhdpi/cart_recommend_add.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/cart_recommend_add.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 755 B |
16
app/src/main/res/drawable/bg_fault_filter.xml
Normal file
16
app/src/main/res/drawable/bg_fault_filter.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_primary" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
54
app/src/main/res/drawable/bg_fault_report_card.xml
Normal file
54
app/src/main/res/drawable/bg_fault_report_card.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 使用低透明度圆角层模拟柔和、均匀的卡片阴影,避免系统投影偏向底部。 -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="20dp" />
|
||||
<solid android:color="#041F2329" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="1dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="19dp" />
|
||||
<solid android:color="#051F2329" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="2dp"
|
||||
android:right="2dp"
|
||||
android:top="2dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="18dp" />
|
||||
<solid android:color="#061F2329" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="3dp"
|
||||
android:left="3dp"
|
||||
android:right="3dp"
|
||||
android:top="3dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="17dp" />
|
||||
<solid android:color="#071F2329" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="5dp"
|
||||
android:left="4dp"
|
||||
android:right="4dp"
|
||||
android:top="4dp">
|
||||
<shape android:shape="rectangle">
|
||||
<corners android:radius="16dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
5
app/src/main/res/drawable/bg_fault_report_delete.xml
Normal file
5
app/src/main/res/drawable/bg_fault_report_delete.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/fault_report_delete_background" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/bg_fault_report_dialog_cancel.xml
Normal file
15
app/src/main/res/drawable/bg_fault_report_dialog_cancel.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_placeholder_pressed" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#F5F6F8" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_border" />
|
||||
<corners android:radius="2dp" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/bg_fault_report_dialog_option.xml
Normal file
15
app/src/main/res/drawable/bg_fault_report_dialog_option.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_placeholder_pressed" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#F8F9FA" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners
|
||||
android:topLeftRadius="20dp"
|
||||
android:topRightRadius="20dp" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/bg_fault_report_edit.xml
Normal file
6
app/src/main/res/drawable/bg_fault_report_edit.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_placeholder_background" />
|
||||
<corners android:radius="8dp" />
|
||||
</shape>
|
||||
9
app/src/main/res/drawable/bg_fault_report_input.xml
Normal file
9
app/src/main/res/drawable/bg_fault_report_input.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_input_background" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/fault_report_border" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/bg_fault_report_phone_icon.xml
Normal file
5
app/src/main/res/drawable/bg_fault_report_phone_icon.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/fault_report_placeholder_background" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/bg_fault_report_placeholder.xml
Normal file
15
app/src/main/res/drawable/bg_fault_report_placeholder.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_placeholder_pressed" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_placeholder_background" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
15
app/src/main/res/drawable/bg_fault_report_submit.xml
Normal file
15
app/src/main/res/drawable/bg_fault_report_submit.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_report_primary_pressed" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_primary" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
21
app/src/main/res/drawable/bg_fault_report_type.xml
Normal file
21
app/src/main/res/drawable/bg_fault_report_type.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/fault_primary" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/fault_primary" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@android:color/white" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/fault_report_border" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
6
app/src/main/res/drawable/bg_fault_status_pending.xml
Normal file
6
app/src/main/res/drawable/bg_fault_status_pending.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/fault_status_pending_background" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/bg_fault_status_processing.xml
Normal file
6
app/src/main/res/drawable/bg_fault_status_processing.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/fault_status_processing_background" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/bg_fault_status_resolved.xml
Normal file
6
app/src/main/res/drawable/bg_fault_status_resolved.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/fault_status_resolved_background" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/bg_fault_type_dry_burning.xml
Normal file
5
app/src/main/res/drawable/bg_fault_type_dry_burning.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/fault_type_dry_burning_background" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/bg_fault_type_overheating.xml
Normal file
5
app/src/main/res/drawable/bg_fault_type_overheating.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/fault_type_overheating_background" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/bg_fault_type_overvoltage.xml
Normal file
5
app/src/main/res/drawable/bg_fault_type_overvoltage.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/fault_type_overvoltage_background" />
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/bg_share_earnings_footer.xml
Normal file
8
app/src/main/res/drawable/bg_share_earnings_footer.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/share_earnings_footer" />
|
||||
<corners
|
||||
android:bottomLeftRadius="16dp"
|
||||
android:bottomRightRadius="16dp" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/bg_share_earnings_invite.xml
Normal file
15
app/src/main/res/drawable/bg_share_earnings_invite.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/share_earnings_footer" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/share_earnings_primary" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
8
app/src/main/res/drawable/bg_share_rules_button.xml
Normal file
8
app/src/main/res/drawable/bg_share_rules_button.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="@color/share_earnings_primary" />
|
||||
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/bg_share_rules_lock.xml
Normal file
6
app/src/main/res/drawable/bg_share_rules_lock.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<solid android:color="@color/share_rules_lock_background" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/bg_share_rules_number.xml
Normal file
6
app/src/main/res/drawable/bg_share_rules_number.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<solid android:color="@color/share_rules_lock_background" />
|
||||
</shape>
|
||||
10
app/src/main/res/drawable/bg_share_rules_panel.xml
Normal file
10
app/src/main/res/drawable/bg_share_rules_panel.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="@android:color/white" />
|
||||
|
||||
<corners
|
||||
android:topLeftRadius="16dp"
|
||||
android:topRightRadius="16dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/cart_card_bg.xml
Normal file
5
app/src/main/res/drawable/cart_card_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/cart_card_bottom_bg.xml
Normal file
5
app/src/main/res/drawable/cart_card_bottom_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:bottomLeftRadius="16dp" android:bottomRightRadius="16dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/cart_card_top_bg.xml
Normal file
5
app/src/main/res/drawable/cart_card_top_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:topLeftRadius="16dp" android:topRightRadius="16dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/cart_check_selector.xml
Normal file
5
app/src/main/res/drawable/cart_check_selector.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:drawable="@mipmap/icon_cart_checked" />
|
||||
<item android:drawable="@mipmap/icon_cart_unchecked" />
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/cart_checkout_bg.xml
Normal file
5
app/src/main/res/drawable/cart_checkout_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/cart_orange" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/cart_delete_bg.xml
Normal file
5
app/src/main/res/drawable/cart_delete_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#E5484D" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/cart_notice_bg.xml
Normal file
5
app/src/main/res/drawable/cart_notice_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFF3EA" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/cart_quantity_bg.xml
Normal file
5
app/src/main/res/drawable/cart_quantity_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#EDEFF2" />
|
||||
<corners android:radius="8dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/checkout_check_selector.xml
Normal file
5
app/src/main/res/drawable/checkout_check_selector.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:drawable="@mipmap/icon_checkout_checked" />
|
||||
<item android:drawable="@mipmap/icon_checkout_unchecked" />
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/checkout_coupon_cancel_bg.xml
Normal file
5
app/src/main/res/drawable/checkout_coupon_cancel_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF"/>
|
||||
<stroke android:width="1dp" android:color="#DCDDE2"/>
|
||||
<corners android:radius="30dp"/>
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/checkout_coupon_card_bg.xml
Normal file
5
app/src/main/res/drawable/checkout_coupon_card_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FDF6F6"/>
|
||||
<stroke android:width="1dp" android:color="#EADFE2"/>
|
||||
<corners android:radius="10dp"/>
|
||||
</shape>
|
||||
@@ -0,0 +1,4 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:drawable="@mipmap/icon_checkout_coupon_checked"/>
|
||||
<item android:drawable="@mipmap/icon_checkout_coupon_unchecked"/>
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/checkout_coupon_divider.xml
Normal file
5
app/src/main/res/drawable/checkout_coupon_divider.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="1dp" android:height="60dp" android:viewportWidth="1" android:viewportHeight="60">
|
||||
<path android:strokeWidth="1" android:strokeColor="#EADFE2"
|
||||
android:pathData="M0.5,0 L0.5,3 M0.5,6 L0.5,9 M0.5,12 L0.5,15 M0.5,18 L0.5,21 M0.5,24 L0.5,27 M0.5,30 L0.5,33 M0.5,36 L0.5,39 M0.5,42 L0.5,45 M0.5,48 L0.5,51 M0.5,54 L0.5,57"/>
|
||||
</vector>
|
||||
4
app/src/main/res/drawable/checkout_coupon_panel_bg.xml
Normal file
4
app/src/main/res/drawable/checkout_coupon_panel_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF"/>
|
||||
<corners android:topLeftRadius="20dp" android:topRightRadius="20dp"/>
|
||||
</shape>
|
||||
18
app/src/main/res/drawable/checkout_redeem_bg.xml
Normal file
18
app/src/main/res/drawable/checkout_redeem_bg.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- 已兑换时显示灰色取消按钮,但仍可点击,不是禁用状态。 -->
|
||||
<item android:state_selected="true">
|
||||
<shape>
|
||||
<solid android:color="#F5F5F5" />
|
||||
<stroke android:width="1dp" android:color="#DDDDDD" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="#FFF2E8" />
|
||||
<stroke android:width="1dp" android:color="@color/cart_orange" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FF6900" />
|
||||
<corners android:radius="10dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/checkout_success_panel_bg.xml
Normal file
5
app/src/main/res/drawable/checkout_success_panel_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/fault_report_media_add_bg.xml
Normal file
5
app/src/main/res/drawable/fault_report_media_add_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#F5F5F5" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/fault_report_option_new_bg.xml
Normal file
15
app/src/main/res/drawable/fault_report_option_new_bg.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape>
|
||||
<solid android:color="#71798D" />
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="#F5F5F5" />
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/fault_report_panel_bg.xml
Normal file
5
app/src/main/res/drawable/fault_report_panel_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/fault_report_pending_bg.xml
Normal file
5
app/src/main/res/drawable/fault_report_pending_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFF0E5" />
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/fault_report_submit_new_bg.xml
Normal file
15
app/src/main/res/drawable/fault_report_submit_new_bg.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape>
|
||||
<solid android:color="@color/fault_report_primary_pressed" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="@color/fault_primary" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/fault_report_summary_bg.xml
Normal file
5
app/src/main/res/drawable/fault_report_summary_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFF0E5" />
|
||||
<corners android:radius="16dp" />
|
||||
</shape>
|
||||
14
app/src/main/res/drawable/ic_fault_description_resolved.xml
Normal file
14
app/src/main/res/drawable/ic_fault_description_resolved.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="12dp"
|
||||
android:height="12dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M4,12.5L9.2,18L20,6.8"
|
||||
android:strokeColor="@color/fault_description_resolved"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2" />
|
||||
</vector>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="12dp"
|
||||
android:height="12dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M12,11A4,4 0,1 0,12 3A4,4 0,0 0,12 11Z"
|
||||
android:strokeColor="@color/fault_primary"
|
||||
android:strokeWidth="1.8" />
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M4.5,21C5.2,16.8 8,14.5 12,14.5C16,14.5 18.8,16.8 19.5,21"
|
||||
android:strokeColor="@color/fault_primary"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeWidth="1.8" />
|
||||
</vector>
|
||||
22
app/src/main/res/drawable/ic_fault_description_warning.xml
Normal file
22
app/src/main/res/drawable/ic_fault_description_warning.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="12dp"
|
||||
android:height="12dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M12,3L2.8,20H21.2Z"
|
||||
android:strokeColor="@color/fault_primary"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.8" />
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M12,8V13"
|
||||
android:strokeColor="@color/fault_primary"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeWidth="1.8" />
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M11.1,16H12.9V17.8H11.1Z" />
|
||||
</vector>
|
||||
14
app/src/main/res/drawable/ic_fault_dry_burning.xml
Normal file
14
app/src/main/res/drawable/ic_fault_dry_burning.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="19dp"
|
||||
android:height="19dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M12,3C12,3 6,9.2 6,14A6,6 0,0 0,18 14C18,9.2 12,3 12,3Z"
|
||||
android:strokeColor="@color/fault_icon_resolved"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.8" />
|
||||
</vector>
|
||||
20
app/src/main/res/drawable/ic_fault_overheating.xml
Normal file
20
app/src/main/res/drawable/ic_fault_overheating.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="19dp"
|
||||
android:height="19dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M12.5,4.5A2.2,2.2 0,0 0,10.3 6.7V13.8A4.5,4.5 0,1 0,14.7 13.8V6.7A2.2,2.2 0,0 0,12.5 4.5Z"
|
||||
android:strokeColor="@color/fault_icon_overheating"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.8" />
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M12.5,8V14"
|
||||
android:strokeColor="@color/fault_icon_overheating"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeWidth="1.8" />
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/ic_fault_overvoltage.xml
Normal file
10
app/src/main/res/drawable/ic_fault_overvoltage.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="19dp"
|
||||
android:height="19dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M13.2,2L4.5,13H10L8.8,22L19.5,9.8H14.1Z" />
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/ic_fault_report_album.xml
Normal file
10
app/src/main/res/drawable/ic_fault_report_album.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M22,16V4c0,-1.1 -0.9,-2 -2,-2H8C6.9,2 6,2.9 6,4v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zM11,12l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z" />
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/ic_fault_report_camera.xml
Normal file
10
app/src/main/res/drawable/ic_fault_report_camera.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M9,4L7.7,6H4C2.9,6 2,6.9 2,8V19C2,20.1 2.9,21 4,21H20C21.1,21 22,20.1 22,19V8C22,6.9 21.1,6 20,6H16.3L15,4H9ZM12,9C14.2,9 16,10.8 16,13C16,15.2 14.2,17 12,17C9.8,17 8,15.2 8,13C8,10.8 9.8,9 12,9ZM12,11C10.9,11 10,11.9 10,13C10,14.1 10.9,15 12,15C13.1,15 14,14.1 14,13C14,11.9 13.1,11 12,11Z" />
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/ic_fault_report_delete.xml
Normal file
10
app/src/main/res/drawable/ic_fault_report_delete.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="12dp"
|
||||
android:height="12dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M18.3,5.7L12,12L5.7,5.7L4.3,7.1L10.6,13.4L4.3,19.7L5.7,21.1L12,14.8L18.3,21.1L19.7,19.7L13.4,13.4L19.7,7.1L18.3,5.7Z" />
|
||||
</vector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M3,17.25V21H6.75L17.81,9.94L14.06,6.19L3,17.25M5.92,19H5V18.08L14.06,9.02L14.98,9.94L5.92,19M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04Z" />
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/ic_fault_report_expand.xml
Normal file
9
app/src/main/res/drawable/ic_fault_report_expand.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_text"
|
||||
android:pathData="M7.4,8.6L12,13.2L16.6,8.6L18,10L12,16L6,10Z" />
|
||||
</vector>
|
||||
10
app/src/main/res/drawable/ic_fault_report_phone.xml
Normal file
10
app/src/main/res/drawable/ic_fault_report_phone.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M6.6,10.8C8.1,13.7 10.3,15.9 13.2,17.4L15.4,15.2C15.7,14.9 16.1,14.8 16.5,14.9C17.7,15.3 19,15.5 20.3,15.5C20.9,15.5 21.3,15.9 21.3,16.5V20C21.3,20.6 20.9,21 20.3,21C10.7,21 3,13.3 3,3.7C3,3.1 3.4,2.7 4,2.7H7.5C8.1,2.7 8.5,3.1 8.5,3.7C8.5,5 8.7,6.3 9.1,7.5C9.2,7.9 9.1,8.3 8.8,8.6L6.6,10.8Z" />
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/ic_fault_report_time.xml
Normal file
9
app/src/main/res/drawable/ic_fault_report_time.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M12,2A10,10 0,1 0,22 12A10,10 0,0 0,12 2M12,4A8,8 0,1 1,4 12A8,8 0,0 1,12 4M11,7H13V12.4L17,15L15.8,16.8L11,13.5Z" />
|
||||
</vector>
|
||||
9
app/src/main/res/drawable/ic_fault_report_type.xml
Normal file
9
app/src/main/res/drawable/ic_fault_report_type.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/fault_primary"
|
||||
android:pathData="M12,2A10,10 0,1 0,22 12A10,10 0,0 0,12 2M12,4A8,8 0,1 1,4 12A8,8 0,0 1,12 4M10.8,7.2L15.6,12L10.8,16.8L9.4,15.4L12.8,12L9.4,8.6Z" />
|
||||
</vector>
|
||||
11
app/src/main/res/drawable/ic_login_country_arrow.xml
Normal file
11
app/src/main/res/drawable/ic_login_country_arrow.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="12dp"
|
||||
android:height="12dp"
|
||||
android:viewportWidth="12"
|
||||
android:viewportHeight="12">
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:strokeColor="#000000"
|
||||
android:strokeWidth="0.8"
|
||||
android:pathData="M1,4L6,9L11,4" />
|
||||
</vector>
|
||||
14
app/src/main/res/drawable/ic_share_rules_close.xml
Normal file
14
app/src/main/res/drawable/ic_share_rules_close.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp"
|
||||
android:height="18dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M5,5 L19,19 M19,5 L5,19"
|
||||
android:strokeColor="@color/share_rules_close"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeWidth="1.8" />
|
||||
</vector>
|
||||
22
app/src/main/res/drawable/ic_share_rules_lock.xml
Normal file
22
app/src/main/res/drawable/ic_share_rules_lock.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M8,10 L8,7 A4,4 0,0 1,16 7 L16,10"
|
||||
android:strokeColor="@color/share_earnings_primary"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2.2" />
|
||||
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M6,10 L18,10 A2,2 0,0 1,20 12 L20,19 A2,2 0,0 1,18 21 L6,21 A2,2 0,0 1,4 19 L4,12 A2,2 0,0 1,6 10 Z"
|
||||
android:strokeColor="@color/share_earnings_primary"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2.2" />
|
||||
</vector>
|
||||
4
app/src/main/res/drawable/login_language_panel_bg.xml
Normal file
4
app/src/main/res/drawable/login_language_panel_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF"/>
|
||||
<corners android:topLeftRadius="16dp" android:topRightRadius="16dp"/>
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/login_language_row_bg.xml
Normal file
4
app/src/main/res/drawable/login_language_row_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true"><shape><solid android:color="#FFF0E5"/><corners android:radius="6dp"/></shape></item>
|
||||
<item><shape><solid android:color="#F5F5F5"/><corners android:radius="6dp"/></shape></item>
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/login_language_tick.xml
Normal file
5
app/src/main/res/drawable/login_language_tick.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="18dp" android:height="18dp" android:viewportWidth="18" android:viewportHeight="18">
|
||||
<path android:pathData="M3,9 L7,13 L15,4" android:fillColor="@android:color/transparent"
|
||||
android:strokeColor="#222222" android:strokeWidth="1.2" android:strokeLineCap="round" android:strokeLineJoin="round"/>
|
||||
</vector>
|
||||
4
app/src/main/res/drawable/login_updated_code_bg.xml
Normal file
4
app/src/main/res/drawable/login_updated_code_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true"><shape><solid android:color="#E3E4E7"/><corners android:radius="10dp"/></shape></item>
|
||||
<item><shape><solid android:color="#FFF0E5"/><corners android:radius="10dp"/></shape></item>
|
||||
</selector>
|
||||
5
app/src/main/res/drawable/login_updated_input_bg.xml
Normal file
5
app/src/main/res/drawable/login_updated_input_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF"/>
|
||||
<stroke android:width="1dp" android:color="#DDDDDD"/>
|
||||
<corners android:radius="12dp"/>
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/login_updated_primary_bg.xml
Normal file
4
app/src/main/res/drawable/login_updated_primary_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FF6900"/>
|
||||
<corners android:radius="999dp"/>
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/login_updated_switch_bg.xml
Normal file
4
app/src/main/res/drawable/login_updated_switch_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#E3E4E7"/>
|
||||
<corners android:radius="28dp"/>
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/my_order_action_outline.xml
Normal file
5
app/src/main/res/drawable/my_order_action_outline.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF" />
|
||||
<stroke android:width="1.4dp" android:color="#DCDCE1" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/my_order_action_primary.xml
Normal file
4
app/src/main/res/drawable/my_order_action_primary.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FF6900" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/my_order_digit_bg.xml
Normal file
4
app/src/main/res/drawable/my_order_digit_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFFFFF" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
||||
4
app/src/main/res/drawable/my_order_pickup_bg.xml
Normal file
4
app/src/main/res/drawable/my_order_pickup_bg.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#FFF0E5" />
|
||||
<corners android:radius="6dp" />
|
||||
</shape>
|
||||
14
app/src/main/res/drawable/my_order_tab_bg.xml
Normal file
14
app/src/main/res/drawable/my_order_tab_bg.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape>
|
||||
<solid android:color="#FFF0E5" />
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="#F5F5F5" />
|
||||
<corners android:radius="24dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
17
app/src/main/res/drawable/pickup_card_bg.xml
Normal file
17
app/src/main/res/drawable/pickup_card_bg.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true">
|
||||
<shape>
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:radius="16dp" />
|
||||
<stroke android:width="1dp" android:color="@color/pickup_orange" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape>
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:radius="16dp" />
|
||||
<stroke android:width="1dp" android:color="@android:color/transparent" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
6
app/src/main/res/drawable/pickup_search_bg.xml
Normal file
6
app/src/main/res/drawable/pickup_search_bg.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@android:color/white" />
|
||||
<corners android:radius="24dp" />
|
||||
<stroke android:width="1dp" android:color="#DDDDDD" />
|
||||
</shape>
|
||||
92
app/src/main/res/layout-w720dp/device_preview.xml
Normal file
92
app/src/main/res/layout-w720dp/device_preview.xml
Normal file
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/device_preview_background"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:locale="en">
|
||||
|
||||
<!-- 复用通用标题栏,通过可选参数设置本页标题和深色文字。 -->
|
||||
|
||||
<include
|
||||
android:id="@+id/include_title"
|
||||
layout="@layout/include_activity_top_title_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
app:title="@{@string/device_preview_title}"
|
||||
app:titleTextColor="@{@color/device_home_text}" />
|
||||
|
||||
<!-- 内容允许滚动,小屏幕和较大字体下仍能查看底部卡片。 -->
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:clipToPadding="false"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
||||
<!-- 按窗口宽度测量,大屏内容居中,手机保持占满宽度。 -->
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
app:maxContentWidth="1100dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="25dp"
|
||||
android:paddingTop="7dp"
|
||||
android:paddingBottom="24dp">
|
||||
|
||||
<!-- 宽窗口:左侧设备信息,右侧减排数据与快捷入口。 -->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:baselineAligned="false">
|
||||
|
||||
<include
|
||||
layout="@layout/device_preview_device_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include
|
||||
layout="@layout/device_preview_carbon_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<include
|
||||
layout="@layout/device_preview_actions_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
|
||||
</FrameLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
@@ -20,8 +21,8 @@
|
||||
app:title="@{@string/address_add_title}"
|
||||
app:titleTextColor="@{@color/personal_info_title_text}" />
|
||||
|
||||
|
||||
<!-- 新增与编辑共用表单;键盘弹出时可以滚动到保存按钮。 -->
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
@@ -29,200 +30,208 @@
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
<!-- 按窗口宽度测量,大屏内容居中,手机保持占满宽度。 -->
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="26dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="32dp">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
app:maxContentWidth="600dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="26dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="32dp">
|
||||
|
||||
<LinearLayout
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="6dp">
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_recipient" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_recipient"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_recipient_hint"
|
||||
android:inputType="textPersonName"
|
||||
android:maxLength="30" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/personal_info_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_mobile" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_mobile"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_mobile_hint"
|
||||
android:inputType="phone"
|
||||
android:maxLength="11" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/personal_info_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_region" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_region"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_region_hint"
|
||||
android:inputType="textPostalAddress"
|
||||
android:maxLength="80" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/personal_info_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_detail" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_detail"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_detail_hint"
|
||||
android:inputType="textPostalAddress|textMultiLine"
|
||||
android:singleLine="false"
|
||||
android:maxLines="3"
|
||||
android:maxLength="200" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="58dp"
|
||||
android:layout_marginTop="14dp"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="16dp">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/address_default_label"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/switch_address_default"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/address_default_label"
|
||||
app:thumbTint="@android:color/white"
|
||||
app:trackTint="@color/address_switch_track" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:minHeight="59dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:background="@drawable/change_binding_code_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
android:padding="14dp"
|
||||
android:text="@string/address_shipping_hint"
|
||||
android:textColor="#E65E00"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_recipient" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_recipient"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_recipient_hint"
|
||||
android:inputType="textPersonName"
|
||||
android:maxLength="30" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
<TextView
|
||||
android:id="@+id/tv_address_save"
|
||||
style="@style/AddressPrimaryButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/personal_info_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_mobile" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_mobile"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_mobile_hint"
|
||||
android:inputType="phone"
|
||||
android:maxLength="11" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/personal_info_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_region" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_region"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_region_hint"
|
||||
android:inputType="textPostalAddress"
|
||||
android:maxLength="80" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/personal_info_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="63dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/address_detail" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_address_detail"
|
||||
style="@style/AddressFormInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingVertical="12dp"
|
||||
android:hint="@string/address_detail_hint"
|
||||
android:inputType="textPostalAddress|textMultiLine"
|
||||
android:singleLine="false"
|
||||
android:maxLines="3"
|
||||
android:maxLength="200" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="58dp"
|
||||
android:layout_marginTop="14dp"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="16dp">
|
||||
|
||||
<TextView
|
||||
style="@style/AddressFormLabel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/address_default_label"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/switch_address_default"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/address_default_label"
|
||||
app:thumbTint="@android:color/white"
|
||||
app:trackTint="@color/address_switch_track" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="59dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:background="@drawable/change_binding_code_bg"
|
||||
android:gravity="center_vertical"
|
||||
android:padding="14dp"
|
||||
android:text="@string/address_shipping_hint"
|
||||
android:textColor="#E65E00"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_save"
|
||||
style="@style/AddressPrimaryButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:text="@string/address_save" />
|
||||
</LinearLayout>
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="28dp"
|
||||
android:text="@string/address_save" />
|
||||
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
|
||||
</FrameLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
|
||||
171
app/src/main/res/layout/cart_manage_layout.xml
Normal file
171
app/src/main/res/layout/cart_manage_layout.xml
Normal file
@@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/cart_header_background"
|
||||
android:fitsSystemWindows="true">
|
||||
|
||||
<!-- 状态栏和标题栏统一白底;折叠屏展开后内容居中,列表独立滚动。 -->
|
||||
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
app:maxContentWidth="480dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:background="@color/cart_header_background">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_cart_back"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="5dp"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/cart_back"
|
||||
android:focusable="true"
|
||||
android:paddingHorizontal="17dp"
|
||||
android:paddingVertical="16dp"
|
||||
android:src="@mipmap/icon_cart_back" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cart_title"
|
||||
style="@style/CartText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="90dp"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cart_manage"
|
||||
style="@style/CartAction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:minWidth="54dp"
|
||||
android:text="@string/cart_manage"
|
||||
android:textColor="@color/cart_orange"
|
||||
android:textSize="14sp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/cart_background">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_cart_goods"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:overScrollMode="never"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cart_empty"
|
||||
style="@style/CartSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/cart_empty"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
|
||||
<!-- 底栏固定为一行,窄分屏缩小按钮宽度,金额自动缩放以免挤压。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/cart_header_background"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="80dp"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="16dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_cart_select_all"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="48dp"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_cart_select_all"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:importantForAccessibility="no"
|
||||
android:src="@drawable/cart_check_selector" />
|
||||
|
||||
<TextView
|
||||
style="@style/CartText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="@string/cart_select_all"
|
||||
android:textSize="@dimen/cart_footer_text_size"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="end"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cart_total_price"
|
||||
style="@style/CartText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:autoSizeMaxTextSize="16sp"
|
||||
android:autoSizeMinTextSize="10sp"
|
||||
android:autoSizeStepGranularity="1sp"
|
||||
android:autoSizeTextType="uniform"
|
||||
android:gravity="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/cart_price_red"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
style="@style/CartText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/cart_total"
|
||||
android:textColor="#666666"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cart_action"
|
||||
style="@style/CartAction"
|
||||
android:layout_width="@dimen/cart_footer_button_width"
|
||||
android:layout_height="47dp"
|
||||
android:autoSizeMaxTextSize="16sp"
|
||||
android:autoSizeMinTextSize="11sp"
|
||||
android:autoSizeStepGranularity="1sp"
|
||||
android:autoSizeTextType="uniform"
|
||||
android:background="@drawable/cart_checkout_bg"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
|
||||
</FrameLayout>
|
||||
492
app/src/main/res/layout/checkout_layout.xml
Normal file
492
app/src/main/res/layout/checkout_layout.xml
Normal file
@@ -0,0 +1,492 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white"
|
||||
android:fitsSystemWindows="true">
|
||||
<!-- 折叠、分屏时随窗口宽度测量,展开后居中限宽,底部提交按钮保持可见。 -->
|
||||
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/cart_background"
|
||||
app:maxContentWidth="480dp">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:background="@android:color/white">
|
||||
<ImageView
|
||||
android:id="@+id/iv_checkout_back"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="5dp"
|
||||
android:paddingHorizontal="17dp"
|
||||
android:paddingVertical="16dp"
|
||||
android:src="@mipmap/icon_cart_back"
|
||||
android:contentDescription="@string/cart_back"
|
||||
android:clickable="true"
|
||||
android:focusable="true" />
|
||||
<TextView
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="52dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/checkout_title"
|
||||
android:textSize="16sp" />
|
||||
</RelativeLayout>
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
android:overScrollMode="never">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_checkout_delivery"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="94dp"
|
||||
android:padding="16dp"
|
||||
android:background="@android:color/white"
|
||||
android:gravity="center_vertical"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1">
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_checkout_address"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:gravity="top">
|
||||
<ImageView
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:src="@mipmap/icon_checkout_address"
|
||||
android:importantForAccessibility="no" />
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="6dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_address"
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_recipient"
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="120dp" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_mobile"
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="6dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_checkout_pickup"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:visibility="gone">
|
||||
<ImageView
|
||||
android:id="@+id/iv_checkout_pickup_avatar"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:src="@mipmap/icon_pickup_store_avatar"
|
||||
android:importantForAccessibility="no" />
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="7dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_pickup_name"
|
||||
style="@style/CheckoutText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center_vertical">
|
||||
<ImageView
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:src="@mipmap/icon_pickup_phone"
|
||||
android:importantForAccessibility="no" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_pickup_phone"
|
||||
style="@style/CheckoutText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="7dp"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center_vertical">
|
||||
<ImageView
|
||||
android:layout_width="14dp"
|
||||
android:layout_height="14dp"
|
||||
android:src="@mipmap/icon_pickup_location"
|
||||
android:importantForAccessibility="no" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_pickup_address"
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="7dp"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<!-- 无地址时保留定位图标和添加提示,整块区域统一响应选择地址。 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_checkout_empty_delivery"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="top">
|
||||
<ImageView
|
||||
android:id="@+id/iv_checkout_empty_address"
|
||||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:layout_marginEnd="6dp"
|
||||
android:importantForAccessibility="no"
|
||||
android:src="@mipmap/icon_checkout_address" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_choose_delivery"
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/checkout_no_address" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
<ImageView
|
||||
android:layout_width="7dp"
|
||||
android:layout_height="12dp"
|
||||
android:src="@mipmap/icon_cart_back"
|
||||
android:importantForAccessibility="no"
|
||||
android:rotation="180"
|
||||
android:tint="#999999"
|
||||
android:layout_marginStart="12dp" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:orientation="vertical">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_checkout_goods"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:overScrollMode="never"
|
||||
android:nestedScrollingEnabled="false" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_goods_empty"
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/cart_choose_first"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@android:color/white"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="16dp">
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_checkout_coupon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="37dp"
|
||||
android:gravity="center_vertical"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
<TextView
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_coupon"
|
||||
android:layout_weight="1" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_coupon_value"
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/cart_price_red" />
|
||||
<ImageView
|
||||
android:layout_width="7dp"
|
||||
android:layout_height="12dp"
|
||||
android:src="@mipmap/icon_cart_back"
|
||||
android:importantForAccessibility="no"
|
||||
android:rotation="180"
|
||||
android:tint="#999999"
|
||||
android:layout_marginStart="12dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="37dp">
|
||||
<TextView
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_points"
|
||||
android:layout_weight="1" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_points_value"
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/cart_price_red"
|
||||
android:layout_marginStart="6dp" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_redeem"
|
||||
style="@style/CartAction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minWidth="64dp"
|
||||
android:minHeight="24dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:paddingHorizontal="7dp"
|
||||
android:paddingVertical="4dp"
|
||||
android:textSize="12sp"
|
||||
android:background="@drawable/checkout_redeem_bg"
|
||||
android:textColor="@color/checkout_redeem_text"
|
||||
android:textStyle="bold"
|
||||
android:text="@string/checkout_redeem" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_available_points"
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="12sp"
|
||||
android:layout_marginTop="2dp" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="14dp" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="8dp"
|
||||
android:background="@android:color/white">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="37dp"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_subtotal"
|
||||
android:layout_weight="1" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_subtotal"
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:textColor="#222222" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="37dp"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_coupon_discount"
|
||||
android:layout_weight="1" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_coupon_total"
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:textColor="@color/cart_price_red" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="37dp"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_points"
|
||||
android:layout_weight="1" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_points_total"
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:textColor="@color/cart_price_red" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:background="#DDDDDD" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="37dp"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_payable"
|
||||
android:layout_weight="1" />
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_payable"
|
||||
style="@style/CheckoutBold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:textColor="#222222" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="15dp"
|
||||
android:background="@android:color/white">
|
||||
<TextView
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_payment_method" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:baselineAligned="false">
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_checkout_online"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:minHeight="38dp"
|
||||
android:gravity="center_vertical"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:paddingEnd="8dp">
|
||||
<ImageView
|
||||
android:id="@+id/iv_checkout_online"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:src="@drawable/checkout_check_selector"
|
||||
android:importantForAccessibility="no" />
|
||||
<TextView
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_telebirr"
|
||||
android:layout_marginStart="6dp" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_checkout_cash"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:minHeight="38dp"
|
||||
android:gravity="center_vertical"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:paddingStart="8dp">
|
||||
<ImageView
|
||||
android:id="@+id/iv_checkout_cash"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:src="@drawable/checkout_check_selector"
|
||||
android:importantForAccessibility="no" />
|
||||
<TextView
|
||||
style="@style/CheckoutSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/checkout_cash"
|
||||
android:layout_marginStart="6dp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:paddingVertical="25dp">
|
||||
<TextView
|
||||
android:id="@+id/tv_checkout_submit"
|
||||
style="@style/CartAction"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:background="@drawable/cart_checkout_bg"
|
||||
android:text="@string/checkout_buy_now"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold" />
|
||||
</FrameLayout>
|
||||
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
|
||||
</FrameLayout>
|
||||
129
app/src/main/res/layout/device_fault_history_layout.xml
Normal file
129
app/src/main/res/layout/device_fault_history_layout.xml
Normal file
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/device_preview_background"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:fitsSystemWindows="true"
|
||||
tools:context=".fault.DeviceFaultLHistoryActivity"
|
||||
tools:locale="en">
|
||||
|
||||
<!-- 宽屏时限制内容宽度,折叠屏展开、横屏和分屏共用同一套布局。 -->
|
||||
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:background="@color/device_preview_background"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
app:maxContentWidth="480dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_title"
|
||||
style="@style/FaultHistoryTitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:text="@string/fault_history_title" />
|
||||
|
||||
<!-- 窄屏和分屏下筛选项可横向滚动,避免文字被压缩。 -->
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="32dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:clipToPadding="false"
|
||||
android:fillViewport="false"
|
||||
android:overScrollMode="never"
|
||||
android:paddingStart="28dp"
|
||||
android:paddingEnd="28dp"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_filter_all"
|
||||
style="@style/FaultHistoryFilter"
|
||||
android:layout_width="53dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/fault_history_filter_all" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_filter_pending"
|
||||
style="@style/FaultHistoryFilter"
|
||||
android:layout_width="73dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="17dp"
|
||||
android:text="@string/fault_history_filter_pending" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_filter_processing"
|
||||
style="@style/FaultHistoryFilter"
|
||||
android:layout_width="86dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="17dp"
|
||||
android:text="@string/fault_history_filter_processing" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_filter_resolved"
|
||||
style="@style/FaultHistoryFilter"
|
||||
android:layout_width="77dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="17dp"
|
||||
android:text="@string/fault_history_filter_resolved" />
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:clipChildren="false">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_fault_history"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:overScrollMode="never"
|
||||
android:paddingStart="26dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingEnd="26dp"
|
||||
android:paddingBottom="24dp"
|
||||
tools:itemCount="3"
|
||||
tools:listitem="@layout/item_fault_history" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_history_empty"
|
||||
style="@style/FaultHistorySecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:padding="28dp"
|
||||
android:text="@string/fault_history_empty"
|
||||
android:visibility="gone" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress_fault_history"
|
||||
style="?android:attr/progressBarStyleSmall"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_gravity="center"
|
||||
android:indeterminateTint="@color/fault_primary"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
|
||||
</FrameLayout>
|
||||
</layout>
|
||||
310
app/src/main/res/layout/device_fault_report_layout.xml
Normal file
310
app/src/main/res/layout/device_fault_report_layout.xml
Normal file
@@ -0,0 +1,310 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<data />
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white"
|
||||
android:fitsSystemWindows="true"
|
||||
tools:context=".fault.DeviceFaultReportActivity">
|
||||
<!-- 标题栏与状态栏统一白底,折叠屏展开后内容居中限宽。 -->
|
||||
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
android:orientation="vertical"
|
||||
app:maxContentWidth="480dp">
|
||||
<include
|
||||
android:id="@+id/include_title"
|
||||
layout="@layout/include_activity_top_title_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
app:title="@{@string/fault_report_title}"
|
||||
app:titleTextColor="@{@color/fault_text}" />
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/fault_report_new_background"
|
||||
android:fillViewport="true"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="24dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingBottom="24dp">
|
||||
<!-- 顶部为故障记录和待处理说明,不套用旧版阴影卡片。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/fault_report_summary_bg">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="78dp"
|
||||
android:padding="14dp"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/fault_report_panel_bg">
|
||||
<ImageView
|
||||
android:id="@+id/iv_fault_report_summary_icon"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:src="@mipmap/icon_fault_report_overheating"
|
||||
android:importantForAccessibility="no" />
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="10dp"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_summary_title"
|
||||
style="@style/FaultReportNewHeading"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/fault_report_summary_title"
|
||||
android:textSize="14sp" />
|
||||
<TextView
|
||||
style="@style/FaultReportNewText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_pending_label"
|
||||
android:layout_marginStart="6dp"
|
||||
android:background="@drawable/fault_report_pending_bg"
|
||||
android:textColor="@color/fault_primary"
|
||||
android:paddingHorizontal="12dp"
|
||||
android:paddingVertical="4dp"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_summary_detail"
|
||||
style="@style/FaultReportNewSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="5dp"
|
||||
android:textSize="12sp"
|
||||
android:text="@string/fault_report_record_hint" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="12dp"
|
||||
android:gravity="top">
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:src="@mipmap/icon_fault_report_notice"
|
||||
android:importantForAccessibility="no" />
|
||||
<TextView
|
||||
style="@style/FaultReportNewText"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="5dp"
|
||||
android:text="@string/fault_report_summary_tip"
|
||||
android:textColor="@color/fault_primary"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
style="@style/FaultReportNewHeading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_type"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="12dp" />
|
||||
<com.ckkj.griddle.custom.view.FaultReportOptionsLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/fault_report_panel_bg"
|
||||
android:padding="14dp">
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_type_no_heating"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_type_no_heating" />
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_type_cracked"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_type_cracked" />
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_type_temperature"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_type_temperature" />
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_type_network"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_type_network" />
|
||||
</com.ckkj.griddle.custom.view.FaultReportOptionsLayout>
|
||||
<TextView
|
||||
style="@style/FaultReportNewHeading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_description"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="12dp" />
|
||||
<EditText
|
||||
android:id="@+id/et_fault_report_description"
|
||||
style="@style/FaultReportInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:background="@drawable/fault_report_panel_bg"
|
||||
android:gravity="top|start"
|
||||
android:hint="@string/fault_report_description_hint"
|
||||
android:inputType="textCapSentences|textMultiLine"
|
||||
android:maxLength="300"
|
||||
android:padding="14dp"
|
||||
android:textColorHint="#999999"
|
||||
android:scrollbars="vertical" />
|
||||
<TextView
|
||||
style="@style/FaultReportNewHeading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_upload_title"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="12dp" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/fault_report_panel_bg"
|
||||
android:padding="14dp">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_fault_report_images"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:overScrollMode="never"
|
||||
android:nestedScrollingEnabled="false"
|
||||
tools:itemCount="1"
|
||||
tools:listitem="@layout/item_fault_report_image" />
|
||||
<TextView
|
||||
style="@style/FaultReportNewSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:textSize="12sp"
|
||||
android:text="@string/fault_report_upload_tip" />
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="64dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center_vertical"
|
||||
android:background="@drawable/fault_report_panel_bg"
|
||||
android:paddingHorizontal="14dp"
|
||||
android:paddingVertical="10dp">
|
||||
<ImageView
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:src="@mipmap/icon_fault_report_phone"
|
||||
android:importantForAccessibility="no" />
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="10dp"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
style="@style/FaultReportNewText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_contact_title"
|
||||
android:textColor="#999999"
|
||||
android:textSize="12sp" />
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_phone"
|
||||
style="@style/FaultReportNewHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:layout_marginTop="4dp"
|
||||
tools:text="159 5542 2218" />
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/tv_fault_report_edit_phone"
|
||||
android:layout_width="44dp"
|
||||
android:layout_height="44dp"
|
||||
android:padding="9dp"
|
||||
android:src="@mipmap/icon_fault_report_edit"
|
||||
android:contentDescription="@string/fault_report_edit"
|
||||
android:clickable="true"
|
||||
android:focusable="true" />
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
style="@style/FaultReportNewHeading"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_visit_time"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="12dp" />
|
||||
<com.ckkj.griddle.custom.view.FaultReportOptionsLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/fault_report_panel_bg"
|
||||
android:padding="14dp">
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_time_asap"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_time_asap" />
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_time_today"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_time_today" />
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_time_tomorrow"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_time_tomorrow" />
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_time_custom"
|
||||
style="@style/FaultReportNewOption"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/fault_report_time_custom" />
|
||||
</com.ckkj.griddle.custom.view.FaultReportOptionsLayout>
|
||||
<!-- 新稿按钮位置和圆角保持一致,文案沿用报修业务的“提交工单”。 -->
|
||||
<TextView
|
||||
android:id="@+id/tv_fault_report_submit"
|
||||
style="@style/FaultReportSubmit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/fault_report_submit_new_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/fault_report_submit" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
|
||||
</FrameLayout>
|
||||
</layout>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<layout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
@@ -14,6 +15,7 @@
|
||||
tools:locale="en">
|
||||
|
||||
<!-- 复用通用标题栏,通过可选参数设置本页标题和深色文字。 -->
|
||||
|
||||
<include
|
||||
android:id="@+id/include_title"
|
||||
layout="@layout/include_activity_top_title_layout"
|
||||
@@ -23,6 +25,7 @@
|
||||
app:titleTextColor="@{@color/device_home_text}" />
|
||||
|
||||
<!-- 内容允许滚动,小屏幕和较大字体下仍能查看底部卡片。 -->
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
@@ -31,574 +34,42 @@
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="25dp"
|
||||
android:paddingTop="7dp"
|
||||
android:paddingBottom="24dp">
|
||||
<!-- 按窗口宽度测量,大屏内容居中,手机保持占满宽度。 -->
|
||||
|
||||
<!-- 设备基础信息,图标和产品图暂用 ic_launcher 占位。 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_preview_device"
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
|
||||
android:layout_gravity="top|center_horizontal"
|
||||
app:maxContentWidth="1100dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="25dp"
|
||||
android:paddingTop="7dp"
|
||||
android:paddingBottom="24dp">
|
||||
|
||||
<RelativeLayout
|
||||
<include
|
||||
layout="@layout/device_preview_device_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<include
|
||||
layout="@layout/device_preview_carbon_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="166dp"
|
||||
android:paddingBottom="7dp">
|
||||
android:layout_marginTop="12dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_device_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_preview_device_icon"
|
||||
android:layout_width="46dp"
|
||||
android:layout_height="46dp"
|
||||
android:background="@drawable/device_home_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="10dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_device_name"
|
||||
style="@style/DevicePreviewHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:minHeight="19dp"
|
||||
android:text="@string/device_preview_name" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_online"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="15dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<View
|
||||
android:id="@+id/view_preview_online_dot"
|
||||
android:layout_width="7dp"
|
||||
android:layout_height="7dp"
|
||||
android:background="@drawable/device_home_status_dot" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_online"
|
||||
style="@style/DevicePreviewText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:text="@string/device_home_online"
|
||||
android:textColor="@color/device_home_online"
|
||||
android:textSize="11.5sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_preview_product"
|
||||
android:layout_width="164dp"
|
||||
android:layout_height="116dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginTop="43dp"
|
||||
android:layout_marginEnd="14dp"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_realtime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/ll_preview_device_header"
|
||||
android:layout_toStartOf="@id/iv_preview_product"
|
||||
android:layout_marginTop="18dp"
|
||||
android:layout_marginStart="20dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="15dp"
|
||||
android:text="@string/device_preview_power_label"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_power"
|
||||
style="@style/DevicePreviewText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:minHeight="22dp"
|
||||
android:text="@string/device_preview_demo_power"
|
||||
android:textSize="17sp" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="7dp"
|
||||
android:minHeight="15dp"
|
||||
android:text="@string/device_preview_temperature_label"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_temperature"
|
||||
style="@style/DevicePreviewText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:minHeight="22dp"
|
||||
android:text="@string/device_preview_demo_temperature"
|
||||
android:textSize="17sp" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- 今日减排及积分,所有示例数据都保留独立控件 ID 便于后续绑定。 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_preview_carbon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
<include
|
||||
layout="@layout/device_preview_actions_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="159dp"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="21dp"
|
||||
android:paddingEnd="14dp"
|
||||
android:paddingTop="9dp"
|
||||
android:paddingBottom="9dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_carbon_details"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewHeading"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/device_preview_carbon_title" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_point_right"
|
||||
android:tint="@color/device_home_offline" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="9dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="14dp"
|
||||
android:text="@string/device_preview_electricity_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_electricity"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:text="@string/device_preview_demo_electricity" />
|
||||
|
||||
<Space
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="7dp" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="14dp"
|
||||
android:text="@string/device_preview_money_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_money"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:text="@string/device_preview_demo_money"
|
||||
android:textColor="@color/device_home_orange" />
|
||||
|
||||
<Space
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="7dp" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="14dp"
|
||||
android:text="@string/device_preview_carbon_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_carbon"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:text="@string/device_preview_demo_carbon" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="132dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="66dp"
|
||||
android:layout_height="66dp">
|
||||
|
||||
<!-- 复用配网页面的圆头橙色进度环;此处 74 为静态展示值。 -->
|
||||
<com.ckkj.griddle.custom.view.ProvisionProgressView
|
||||
android:id="@+id/preview_points_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:importantForAccessibility="no"
|
||||
app:provisionProgress="74"
|
||||
app:provisionStrokeWidth="6dp"
|
||||
app:provisionInset="0dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_points"
|
||||
style="@style/DevicePreviewText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:minHeight="17dp"
|
||||
android:text="@string/device_preview_demo_points"
|
||||
android:textSize="13sp" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dp"
|
||||
android:minHeight="11dp"
|
||||
android:text="@string/device_preview_points_label"
|
||||
android:textColor="@color/device_home_muted"
|
||||
android:textSize="8.5sp" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_equivalent"
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="12dp"
|
||||
android:text="@string/device_preview_equivalent"
|
||||
android:textColor="@color/device_home_muted"
|
||||
android:textSize="9sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="11dp"
|
||||
android:baselineAligned="false"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- 今日节省卡片。 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_preview_savings"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_weight="1"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="160dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="11dp">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewSmallHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="17dp"
|
||||
android:text="@string/device_preview_savings_title" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_charcoal_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_charcoal"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/device_preview_demo_charcoal"
|
||||
android:textSize="12.5sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_saving_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_saving"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/device_preview_demo_saving"
|
||||
android:textSize="12.5sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_preview_savings"
|
||||
android:layout_width="81dp"
|
||||
android:layout_height="53dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="18dp"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- 快捷操作暂只保留入口控件,业务点击由后续页面逻辑接入。 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_preview_actions"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="160dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="11dp">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewSmallHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="17dp"
|
||||
android:text="@string/device_preview_actions_title" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_stats"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="7dp"
|
||||
android:minHeight="34dp"
|
||||
android:background="@drawable/device_preview_action_bg"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="9dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:background="@drawable/device_preview_action_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="4dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_carbon_status"
|
||||
style="@style/DevicePreviewAction"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_stats" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_control"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="34dp"
|
||||
android:background="@drawable/device_preview_action_bg"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="9dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:background="@drawable/device_preview_action_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="4dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewAction"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_control" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_carbon_points"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="34dp"
|
||||
android:background="@drawable/device_preview_action_bg"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="9dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:background="@drawable/device_preview_action_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="4dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_carbon_points"
|
||||
style="@style/DevicePreviewAction"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_carbon_points" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
android:layout_marginTop="12dp" />
|
||||
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
|
||||
</FrameLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
|
||||
234
app/src/main/res/layout/device_preview_actions_content.xml
Normal file
234
app/src/main/res/layout/device_preview_actions_content.xml
Normal file
@@ -0,0 +1,234 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:baselineAligned="false"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- 今日节省卡片。 -->
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_preview_savings"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:layout_weight="1"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="160dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="11dp">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewSmallHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="17dp"
|
||||
android:text="@string/device_preview_savings_title" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_charcoal_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_charcoal"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/device_preview_demo_charcoal"
|
||||
android:textSize="12.5sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_saving_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_saving"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/device_preview_demo_saving"
|
||||
android:textSize="12.5sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_preview_savings"
|
||||
android:layout_width="81dp"
|
||||
android:layout_height="53dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="18dp"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="fitCenter"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- 快捷操作暂只保留入口控件,业务点击由后续页面逻辑接入。 -->
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/cv_preview_actions"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="160dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="11dp">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewSmallHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="17dp"
|
||||
android:text="@string/device_preview_actions_title" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_stats"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="7dp"
|
||||
android:minHeight="34dp"
|
||||
android:background="@drawable/device_preview_action_bg"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="9dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:background="@drawable/device_preview_action_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="4dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_carbon_status"
|
||||
style="@style/DevicePreviewAction"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_stats" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_control"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="34dp"
|
||||
android:background="@drawable/device_preview_action_bg"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="9dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:background="@drawable/device_preview_action_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="4dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewAction"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_control" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_carbon_points"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6dp"
|
||||
android:minHeight="34dp"
|
||||
android:background="@drawable/device_preview_action_bg"
|
||||
android:foreground="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="9dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="22dp"
|
||||
android:layout_height="22dp"
|
||||
android:background="@drawable/device_preview_action_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="4dp"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_carbon_points"
|
||||
style="@style/DevicePreviewAction"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="@string/device_preview_carbon_points" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
186
app/src/main/res/layout/device_preview_carbon_content.xml
Normal file
186
app/src/main/res/layout/device_preview_carbon_content.xml
Normal file
@@ -0,0 +1,186 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/cv_preview_carbon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="159dp"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="21dp"
|
||||
android:paddingEnd="14dp"
|
||||
android:paddingTop="9dp"
|
||||
android:paddingBottom="9dp">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_preview_carbon_details"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="17dp"
|
||||
android:layout_height="17dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewHeading"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/device_preview_carbon_title" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_point_right"
|
||||
android:tint="@color/device_home_offline" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="9dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="14dp"
|
||||
android:text="@string/device_preview_electricity_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_electricity"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:text="@string/device_preview_demo_electricity" />
|
||||
|
||||
<Space
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="7dp" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="14dp"
|
||||
android:text="@string/device_preview_money_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_money"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:text="@string/device_preview_demo_money"
|
||||
android:textColor="@color/device_home_orange" />
|
||||
|
||||
<Space
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="7dp" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="14dp"
|
||||
android:text="@string/device_preview_carbon_label" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_carbon"
|
||||
style="@style/DevicePreviewValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="19dp"
|
||||
android:text="@string/device_preview_demo_carbon" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="132dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:paddingTop="16dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="66dp"
|
||||
android:layout_height="66dp">
|
||||
|
||||
<!-- 复用配网页面的圆头橙色进度环;此处 74 为静态展示值。 -->
|
||||
|
||||
<com.ckkj.griddle.custom.view.ProvisionProgressView
|
||||
android:id="@+id/preview_points_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:importantForAccessibility="no"
|
||||
app:provisionProgress="74"
|
||||
app:provisionStrokeWidth="6dp"
|
||||
app:provisionInset="0dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_points"
|
||||
style="@style/DevicePreviewText"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:minHeight="17dp"
|
||||
android:text="@string/device_preview_demo_points"
|
||||
android:textSize="13sp" />
|
||||
|
||||
<TextView
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dp"
|
||||
android:minHeight="11dp"
|
||||
android:text="@string/device_preview_points_label"
|
||||
android:textColor="@color/device_home_muted"
|
||||
android:textSize="8.5sp" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_preview_equivalent"
|
||||
style="@style/DevicePreviewLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13dp"
|
||||
android:gravity="center"
|
||||
android:minHeight="12dp"
|
||||
android:text="@string/device_preview_equivalent"
|
||||
android:textColor="@color/device_home_muted"
|
||||
android:textSize="9sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user