纯蓝牙通信,个人中心相关。
8
app/src/main/res/color/address_switch_track.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:state_checked="true"
|
||||
android:color="@color/change_binding_orange" />
|
||||
<item android:color="#C5CAD3" />
|
||||
</selector>
|
||||
10
app/src/main/res/color/points_order_filter_text.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:state_selected="true"
|
||||
android:color="@color/points_order_orange" />
|
||||
|
||||
<item android:color="@color/points_order_muted" />
|
||||
|
||||
</selector>
|
||||
BIN
app/src/main/res/drawable-xhdpi/points_order_goods_1.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
app/src/main/res/drawable-xhdpi/points_order_goods_2.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
app/src/main/res/drawable-xhdpi/points_order_goods_3.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
10
app/src/main/res/drawable/address_action_bg.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" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/personal_info_divider" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
7
app/src/main/res/drawable/address_default_bg.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="@color/change_binding_code_background" />
|
||||
<corners android:radius="999dp" />
|
||||
</shape>
|
||||
6
app/src/main/res/drawable/change_binding_code_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"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="@color/change_binding_code_background" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
||||
16
app/src/main/res/drawable/ic_points_order_delivery.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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="M2,5h13v12H2ZM15,9h4l3,4v4h-7M7,17a2,2 0,1 0,0 4a2,2 0,1 0,0 -4M18,17a2,2 0,1 0,0 4a2,2 0,1 0,0 -4"
|
||||
android:strokeColor="@android:color/white"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.7" />
|
||||
|
||||
</vector>
|
||||
22
app/src/main/res/drawable/ic_points_order_location.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="11dp"
|
||||
android:height="11dp"
|
||||
android:viewportWidth="11"
|
||||
android:viewportHeight="11">
|
||||
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M8.5,4.1C8.5,6.3 5.5,9.5 5.5,9.5S2.5,6.3 2.5,4.1A3,3 0,1 1,8.5 4.1Z"
|
||||
android:strokeColor="@color/points_order_location"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.1" />
|
||||
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M6.5,4.1A1,1 0,1 1,4.5 4.1A1,1 0,1 1,6.5 4.1Z"
|
||||
android:strokeColor="@color/points_order_location"
|
||||
android:strokeWidth="1.1" />
|
||||
|
||||
</vector>
|
||||
16
app/src/main/res/drawable/ic_points_order_service.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
|
||||
<path
|
||||
android:fillColor="@android:color/transparent"
|
||||
android:pathData="M4,13V10a8,8 0,0 1,16 0v3M5,11H4a2,2 0,0 0,-2 2v3a2,2 0,0 0,2 2h2v-7ZM19,11h1a2,2 0,0 1,2 2v3a2,2 0,0 1,-2 2h-2v-7ZM20,18v1a3,3 0,0 1,-3 3h-3"
|
||||
android:strokeColor="@color/points_order_orange"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="1.8" />
|
||||
|
||||
</vector>
|
||||
8
app/src/main/res/drawable/points_order_cancelled_bg.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/points_order_cancelled_background" />
|
||||
<corners android:radius="999dp" />
|
||||
|
||||
</shape>
|
||||
@@ -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/points_order_pending_background" />
|
||||
<corners android:radius="12dp" />
|
||||
|
||||
</shape>
|
||||
@@ -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/points_order_orange" />
|
||||
<corners android:radius="16dp" />
|
||||
|
||||
</shape>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
|
||||
<solid android:color="#38FFFFFF" />
|
||||
|
||||
</shape>
|
||||
19
app/src/main/res/drawable/points_order_filter_bg.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_selected="true">
|
||||
<layer-list>
|
||||
<item
|
||||
android:width="16dp"
|
||||
android:height="2dp"
|
||||
android:gravity="bottom|center_horizontal">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/points_order_orange" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
</item>
|
||||
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
|
||||
</selector>
|
||||
8
app/src/main/res/drawable/points_order_pending_bg.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/points_order_pending_background" />
|
||||
<corners android:radius="999dp" />
|
||||
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/points_order_picked_up_bg.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/points_order_picked_up_background" />
|
||||
<corners android:radius="999dp" />
|
||||
|
||||
</shape>
|
||||
13
app/src/main/res/drawable/points_order_pickup_bg.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="@color/points_order_pending_background" />
|
||||
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="@color/points_order_pickup_border" />
|
||||
|
||||
<corners android:radius="12dp" />
|
||||
|
||||
</shape>
|
||||
228
app/src/main/res/layout/address_edit_layout.xml
Normal file
@@ -0,0 +1,228 @@
|
||||
<?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/personal_info_background"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<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/address_add_title}"
|
||||
app:titleTextColor="@{@color/personal_info_title_text}" />
|
||||
|
||||
|
||||
<!-- 新增与编辑共用表单;键盘弹出时可以滚动到保存按钮。 -->
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="26dp"
|
||||
android:paddingTop="4dp"
|
||||
android:paddingBottom="32dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<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="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>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
48
app/src/main/res/layout/all_goods_item.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="172dp"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="10dp">
|
||||
|
||||
<!-- 图片沿用商城 Glide 加载逻辑,内层卡片负责圆角裁剪。 -->
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:cardElevation="0dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_food_cover"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/food_cover_placeholder" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_food_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/points_order_text"
|
||||
android:textSize="12sp"
|
||||
tools:text="Chechebsa" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
73
app/src/main/res/layout/all_goods_layout.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<?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/f9f9f9"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:context=".shop.AllGoodsActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/include_title"
|
||||
layout="@layout/include_activity_top_title_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:title="@{@string/shop_all_goods_title}"
|
||||
app:titleTextColor="@{@color/points_order_text}" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<!-- 双列列表独立滚动,支持下拉刷新和上拉分页。 -->
|
||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/refresh_all_goods"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_all_goods"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:paddingStart="28dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingEnd="28dp"
|
||||
android:paddingBottom="22dp"
|
||||
android:scrollbars="none"
|
||||
tools:itemCount="6"
|
||||
tools:listitem="@layout/all_goods_item" />
|
||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress_all_goods"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_gravity="center"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- 空列表和首屏失败共用提示区,点击即可重新获取第一页。 -->
|
||||
<TextView
|
||||
android:id="@+id/tv_all_goods_state"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:padding="24dp"
|
||||
android:textColor="@color/points_order_text"
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
139
app/src/main/res/layout/ble_debug_layout.xml
Normal file
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/white"
|
||||
android:fitsSystemWindows="true">
|
||||
|
||||
<!-- 内层保留内容边距,避免状态栏适配重置根布局 padding 后文字贴屏幕边缘。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/ble_debug_title"
|
||||
android:textColor="#222222"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_ble_device"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textColor="#333333"
|
||||
android:textSize="13sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_ble_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textColor="#D65A00"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="@string/ble_debug_hint"
|
||||
android:textColor="#666666"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<Button
|
||||
android:id="@+id/btn_ble_device_get"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/ble_debug_device_get" />
|
||||
<Button
|
||||
android:id="@+id/btn_ble_state_get"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/ble_debug_state_get" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<Button
|
||||
android:id="@+id/btn_ble_power_on"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/ble_debug_power_on" />
|
||||
<Button
|
||||
android:id="@+id/btn_ble_power_off"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/ble_debug_power_off" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<Button
|
||||
android:id="@+id/btn_ble_clear"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/ble_debug_clear" />
|
||||
<Button
|
||||
android:id="@+id/btn_ble_back"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/ble_debug_back" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 状态和操作记录统一滚动,小屏也可查看全部协议字段。 -->
|
||||
<ScrollView
|
||||
android:id="@+id/ble_log_scroll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="#F3F4F5"
|
||||
android:padding="8dp">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_ble_data_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#666666"
|
||||
android:textSize="12sp" />
|
||||
<TextView style="@style/BleDebugSectionTitle" android:text="@string/ble_debug_device_section" />
|
||||
<TextView android:id="@+id/tv_ble_device_fields" style="@style/BleDebugFieldText" />
|
||||
<TextView style="@style/BleDebugSectionTitle" android:text="@string/ble_debug_measurements_section" />
|
||||
<TextView android:id="@+id/tv_ble_measurements" style="@style/BleDebugFieldText" />
|
||||
<TextView style="@style/BleDebugSectionTitle" android:text="@string/ble_debug_running_section" />
|
||||
<TextView android:id="@+id/tv_ble_running" style="@style/BleDebugFieldText" />
|
||||
<TextView style="@style/BleDebugSectionTitle" android:text="@string/ble_debug_fault_section" />
|
||||
<TextView android:id="@+id/tv_ble_faults" style="@style/BleDebugFieldText" />
|
||||
<TextView style="@style/BleDebugSectionTitle" android:text="@string/ble_debug_log_section" />
|
||||
<TextView
|
||||
android:id="@+id/tv_ble_log"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#222222"
|
||||
android:textIsSelectable="true"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
115
app/src/main/res/layout/change_email_layout.xml
Normal file
@@ -0,0 +1,115 @@
|
||||
<?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/personal_info_background"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:context=".mine.ChangeEmailActivity">
|
||||
|
||||
<!-- 顶部沿用个人信息页的通用标题栏与背景色。 -->
|
||||
<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/change_email_title}"
|
||||
app:titleTextColor="@{@color/personal_info_title_text}" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="26dp"
|
||||
android:paddingTop="18dp"
|
||||
android:paddingEnd="29dp"
|
||||
android:paddingBottom="32dp">
|
||||
|
||||
<TextView
|
||||
style="@style/ChangeBindingLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="19dp"
|
||||
android:text="@string/change_binding_email_hint" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_binding_email"
|
||||
style="@style/ChangeBindingInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="@string/change_binding_email_hint"
|
||||
android:imeOptions="actionNext"
|
||||
android:inputType="textEmailAddress"
|
||||
android:maxLength="254"
|
||||
android:autofillHints="emailAddress" />
|
||||
|
||||
<TextView
|
||||
style="@style/ChangeBindingLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="19dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:text="@string/change_binding_email_code_label" />
|
||||
|
||||
<!-- 验证码输入框占据剩余空间,右侧获取按钮固定宽度。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_binding_code"
|
||||
style="@style/ChangeBindingInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/change_binding_code_hint"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="number"
|
||||
android:maxLength="6"
|
||||
android:saveEnabled="false" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_binding_get_code"
|
||||
android:layout_width="74dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:background="@drawable/change_binding_code_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/change_binding_get_code"
|
||||
android:textColor="@color/change_binding_orange"
|
||||
android:textSize="13.33sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_binding_confirm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="22dp"
|
||||
android:background="@drawable/login_design_button_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:text="@string/change_email_confirm"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
112
app/src/main/res/layout/change_phone_layout.xml
Normal file
@@ -0,0 +1,112 @@
|
||||
<?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/personal_info_background"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical"
|
||||
tools:context=".mine.ChangePhoneActivity">
|
||||
|
||||
<!-- 顶部沿用个人信息页的通用标题栏与背景色。 -->
|
||||
<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/change_phone_title}"
|
||||
app:titleTextColor="@{@color/personal_info_title_text}" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="28dp"
|
||||
android:paddingTop="18dp"
|
||||
android:paddingEnd="27dp"
|
||||
android:paddingBottom="32dp">
|
||||
|
||||
<TextView
|
||||
style="@style/ChangeBindingLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="19dp"
|
||||
android:text="@string/change_phone_bound" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_bound_phone"
|
||||
style="@style/ChangeBindingInput"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:text="@string/change_phone_unbound"
|
||||
tools:text="186****9618" />
|
||||
|
||||
<TextView
|
||||
style="@style/ChangeBindingLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="19dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:text="@string/change_binding_code_label" />
|
||||
|
||||
<!-- 验证码输入框占据剩余空间,右侧获取按钮固定宽度。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="46dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_binding_code"
|
||||
style="@style/ChangeBindingInput"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:hint="@string/change_binding_code_hint"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="number"
|
||||
android:maxLength="6"
|
||||
android:saveEnabled="false" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_binding_get_code"
|
||||
android:layout_width="74dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="8dp"
|
||||
android:background="@drawable/change_binding_code_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:text="@string/change_binding_get_code"
|
||||
android:textColor="@color/change_binding_orange"
|
||||
android:textSize="13.33sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_binding_confirm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="22dp"
|
||||
android:background="@drawable/login_design_button_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:text="@string/change_phone_confirm"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:background="@color/f9f9f9"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
@@ -51,6 +51,7 @@
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@mipmap/icon_top_right_add" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
android:layout_width="@dimen/dp_50"
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:src="@mipmap/icon_loading_taiji"
|
||||
android:src="@mipmap/ic_launcher"
|
||||
android:visibility="visible"/>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -19,5 +19,5 @@
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
android:layout_marginTop="@dimen/dp_150"
|
||||
android:src="@mipmap/icon_mdbz_logo"/>
|
||||
android:src="@mipmap/ic_launcher"/>
|
||||
</LinearLayout>
|
||||
179
app/src/main/res/layout/item_points_order.xml
Normal file
@@ -0,0 +1,179 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="14dp">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardBackgroundColor="@android:color/white"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
android:layout_margin="4dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="14dp">
|
||||
|
||||
<!-- 订单号与状态标签。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="24dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_number"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="1"
|
||||
android:ellipsize="end"
|
||||
android:gravity="center_vertical"
|
||||
android:maxLines="1"
|
||||
tools:text="订单号:P01234567" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_status"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/points_order_pending_bg"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="10dp"
|
||||
tools:text="待自提" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 商品信息允许内容增高,避免小屏或长商品名挤压价格。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="56dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_points_order_goods"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@drawable/points_order_goods_1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_goods_name"
|
||||
style="@style/PointsOrderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:maxLines="2"
|
||||
android:minHeight="19dp"
|
||||
android:textStyle="bold"
|
||||
tools:text="有机杂粮礼盒" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_goods_spec"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:minHeight="15dp"
|
||||
tools:text="320g(80g×4)/盒" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_price"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:minHeight="15dp"
|
||||
android:textColor="@color/points_order_orange"
|
||||
tools:text="2,000 积分 + 200 元" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 三种状态均保留提货信息,与设计稿保持一致。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/points_order_pickup_bg"
|
||||
android:minHeight="60dp"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="13dp"
|
||||
android:paddingVertical="11dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_pickup_code"
|
||||
style="@style/PointsOrderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:minHeight="19dp"
|
||||
android:textColor="@color/points_order_orange"
|
||||
android:textStyle="bold"
|
||||
tools:text="提货码:836 205" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="15dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="11dp"
|
||||
android:layout_height="11dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/ic_points_order_location" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_pickup_point"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_weight="1"
|
||||
android:minHeight="15dp"
|
||||
android:textColor="@color/points_order_location"
|
||||
tools:text="自提点:云航代理服务点" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_detail"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="25dp"
|
||||
android:background="?attr/selectableItemBackground"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="end|bottom"
|
||||
android:text="@string/points_order_view_detail"
|
||||
android:textColor="@color/points_order_orange" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
@@ -1,9 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout 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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:fitsSystemWindows="true">
|
||||
android:background="@color/f9f9f9"
|
||||
android:fitsSystemWindows="false">
|
||||
|
||||
<!-- 状态栏背景由占位 View 绘制,高度由 ImmersionBar 设置,避免重复避让。 -->
|
||||
<View
|
||||
android:id="@+id/statusBarView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="@color/f9f9f9" />
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:id="@+id/nav_view"
|
||||
@@ -18,12 +27,13 @@
|
||||
app:itemBackground="@android:color/transparent"
|
||||
app:labelVisibilityMode="labeled"
|
||||
app:itemIconTint="@null"
|
||||
android:visibility="visible"/>
|
||||
android:visibility="visible" />
|
||||
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/nav_viewpage2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@+id/nav_view"
|
||||
android:visibility="visible"/>
|
||||
</RelativeLayout>
|
||||
android:layout_above="@id/nav_view"
|
||||
android:layout_below="@id/statusBarView"
|
||||
android:visibility="visible" />
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/device_home_background"
|
||||
android:background="@color/f9f9f9"
|
||||
android:clipToPadding="false"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
@@ -14,7 +14,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="28dp"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false">
|
||||
|
||||
534
app/src/main/res/layout/points_order_detail.xml
Normal file
@@ -0,0 +1,534 @@
|
||||
<?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:context=".point.PointsOrderDetailActivity">
|
||||
|
||||
<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/points_order_detail_title}"
|
||||
app:titleTextColor="@{@color/points_order_text}" />
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/scroll_points_detail"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="28dp"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="28dp">
|
||||
|
||||
<!-- 状态提示随所选订单更新,保留轻阴影,避免厚重灰边。 -->
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_points_detail_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/points_order_detail_status_bg"
|
||||
android:elevation="1dp"
|
||||
android:minHeight="84dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="16dp"
|
||||
android:paddingVertical="14dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="38dp"
|
||||
android:layout_height="38dp"
|
||||
android:layout_marginEnd="12dp"
|
||||
android:background="@drawable/points_order_detail_status_icon_bg"
|
||||
android:contentDescription="@null"
|
||||
android:padding="10dp"
|
||||
android:src="@drawable/ic_points_order_delivery" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_status"
|
||||
style="@style/PointsOrderDetailHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@android:color/white"
|
||||
tools:text="待自提" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_status_hint"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:lineSpacingExtra="2dp"
|
||||
android:minHeight="32dp"
|
||||
android:textColor="@android:color/white"
|
||||
tools:text="请在 7 天内凭提货码前往自提点领取商品" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 自提信息:内容可自动换行,按钮保留设计稿的浅橙色背景。 -->
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
style="@style/PointsOrderDetailCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_pickup_information" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="34dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_pickup_point" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_pickup_point"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="云航代理服务点" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="52dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_address" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_pickup_address"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="浙江省杭州市余杭区 XX 路 XX 园区" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="34dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_contact_phone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_contact_phone"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="0571-XXXXXXXX" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="52dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_business_hours" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_business_hours"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="周一至周日 08:00–18:00" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_points_detail_navigate"
|
||||
style="@style/PointsOrderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="42dp"
|
||||
android:layout_marginTop="6dp"
|
||||
android:background="@drawable/points_order_detail_action_bg"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:gravity="center"
|
||||
android:text="@string/points_detail_navigate"
|
||||
android:textColor="@color/points_order_orange"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- 提货码:已提货或取消状态由 Activity 标记为已使用或已失效。 -->
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
style="@style/PointsOrderDetailCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_pickup_code" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_pickup_code"
|
||||
style="@style/PointsOrderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="74dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/points_order_pickup_bg"
|
||||
android:fontFamily="sans-serif-black"
|
||||
android:gravity="center"
|
||||
android:letterSpacing="0.07142857"
|
||||
android:textColor="@color/points_order_orange"
|
||||
android:textSize="28sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="836 205" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_code_hint"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
tools:text="该提货码已使用" />
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- 商品与兑换金额沿用当前订单,不复用设计稿中的固定订单号或商品图。 -->
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
style="@style/PointsOrderDetailCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_goods_information"
|
||||
android:textColor="@color/points_order_orange" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="56dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_points_detail_goods"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:contentDescription="@null"
|
||||
android:scaleType="centerCrop"
|
||||
tools:src="@drawable/points_order_goods_1" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_goods_name"
|
||||
style="@style/PointsOrderDetailHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
tools:text="有机杂粮礼盒" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_goods_spec"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:minHeight="15dp"
|
||||
tools:text="320g(80g×4)/盒" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_goods_price"
|
||||
style="@style/PointsOrderSecondary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:fontFamily="sans-serif-medium"
|
||||
android:minHeight="15dp"
|
||||
android:textColor="@color/points_order_orange"
|
||||
tools:text="2,000 积分 + 200 元" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@color/points_detail_divider" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="38dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_total_price" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_total_price"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="2,000 积分 + 200 元"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<!-- 订单基础信息统一使用双列布局,长地址自动换行。 -->
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
style="@style/PointsOrderDetailCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailHeading"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_order_information" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="34dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_order_number" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_order_number"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="P01234567" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="34dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_redeemed_at" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_redeemed_at"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="2026-10-13 11:17:35" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="34dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_shipped_at" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_shipped_at"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="2026-10-13 11:47:35" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="34dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_recipient" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_recipient"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="张先生 138****5678" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="34dp"
|
||||
android:orientation="horizontal"
|
||||
android:paddingVertical="8dp">
|
||||
|
||||
<TextView
|
||||
style="@style/PointsOrderDetailLabel"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/points_detail_shipping_address" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_shipping_address"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
tools:text="浙江省杭州市余杭区" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress_points_detail"
|
||||
style="?android:attr/progressBarStyleSmall"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_gravity="center"
|
||||
android:indeterminateTint="@color/points_order_orange"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_detail_error"
|
||||
style="@style/PointsOrderDetailValue"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:gravity="center"
|
||||
android:padding="28dp"
|
||||
android:text="@string/points_detail_error"
|
||||
android:textColor="@color/points_order_muted"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
108
app/src/main/res/layout/points_order_list.xml
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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:context=".point.PointsOrderActivity">
|
||||
|
||||
<include
|
||||
android:id="@+id/include_title"
|
||||
layout="@layout/include_activity_top_title_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginTop="10dp"
|
||||
app:title="@{@string/points_order_title}"
|
||||
app:titleTextColor="@{@color/points_order_text}" />
|
||||
|
||||
<!-- 四个筛选项等宽平分,文字和选中下划线均居中显示。 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="28dp"
|
||||
android:layout_marginHorizontal="28dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_all"
|
||||
style="@style/PointsOrderFilter"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/points_order_all" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_pending"
|
||||
style="@style/PointsOrderFilter"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/points_order_pending" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_picked_up"
|
||||
style="@style/PointsOrderFilter"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/points_order_picked_up" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_order_cancelled"
|
||||
style="@style/PointsOrderFilter"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:text="@string/points_order_cancelled" />
|
||||
</LinearLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_points_orders"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:overScrollMode="never"
|
||||
android:paddingHorizontal="20dp"
|
||||
android:paddingTop="14dp"
|
||||
android:paddingBottom="28dp"
|
||||
tools:itemCount="3"
|
||||
tools:listitem="@layout/item_points_order" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_points_orders_empty"
|
||||
style="@style/PointsOrderText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:padding="28dp"
|
||||
android:text="@string/points_order_empty"
|
||||
android:textColor="@color/points_order_muted"
|
||||
android:visibility="gone" />
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progress_points_orders"
|
||||
style="?android:attr/progressBarStyleSmall"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_gravity="center"
|
||||
android:indeterminateTint="@color/points_order_orange"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
94
app/src/main/res/layout/shipping_address_item.xml
Normal file
@@ -0,0 +1,94 @@
|
||||
<?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"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="14dp"
|
||||
app:cardCornerRadius="16dp"
|
||||
app:cardElevation="1dp"
|
||||
app:cardPreventCornerOverlap="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="124dp"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:maxWidth="100dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/personal_info_title_text"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold"
|
||||
tools:text="陈晓" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_default"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:background="@drawable/address_default_bg"
|
||||
android:gravity="center"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:text="@string/address_default"
|
||||
android:textColor="@color/change_binding_orange"
|
||||
android:textSize="11sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_phone"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/change_binding_label"
|
||||
android:textSize="12sp"
|
||||
tools:text="13800138821" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_full"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:drawableStart="@drawable/ic_points_order_location"
|
||||
android:drawablePadding="8dp"
|
||||
android:textColor="@color/change_binding_label"
|
||||
android:textSize="12sp"
|
||||
tools:text="上海市 浦东新区 张江路88号" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="14dp"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_edit"
|
||||
style="@style/AddressItemAction"
|
||||
android:layout_width="45dp"
|
||||
android:layout_height="30dp"
|
||||
android:text="@string/address_edit" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_delete"
|
||||
style="@style/AddressItemAction"
|
||||
android:layout_width="58dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="@string/address_delete" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
77
app/src/main/res/layout/shipping_address_layout.xml
Normal file
@@ -0,0 +1,77 @@
|
||||
<?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/personal_info_background"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<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/address_list_title}"
|
||||
app:titleTextColor="@{@color/personal_info_title_text}" />
|
||||
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="32dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_summary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="20dp"
|
||||
android:textColor="@color/personal_info_muted"
|
||||
android:textSize="11sp"
|
||||
tools:text="共 2 个地址 · 优先使用默认地址" />
|
||||
|
||||
<!-- 列表交给 BaseQuickAdapter;外层滚动统一容纳新增按钮。 -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_addresses"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:nestedScrollingEnabled="false"
|
||||
android:clipToPadding="false"
|
||||
android:paddingHorizontal="26dp"
|
||||
tools:listitem="@layout/shipping_address_item" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_empty"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/address_empty"
|
||||
android:textColor="@color/personal_info_muted"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_address_add"
|
||||
style="@style/AddressPrimaryButton"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginHorizontal="26dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:text="@string/address_add" />
|
||||
</LinearLayout>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@@ -6,12 +6,12 @@
|
||||
android:id="@+id/refresh_shop"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white">
|
||||
android:background="@color/f9f9f9">
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/sv_food_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:background="@color/f9f9f9"
|
||||
android:fillViewport="true"
|
||||
android:scrollbars="none"
|
||||
tools:locale="zh">
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 958 B |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 1.8 KiB |
63
app/src/main/res/values-en/ble_debug_strings.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="ble_debug_title">BLE Debug</string>
|
||||
<string name="ble_debug_device">Device: %1$s\nSKU: %2$s Firmware: %3$s</string>
|
||||
<string name="ble_debug_hint">Displays the latest queried and reported device data without polling. Device/state queries and clock sync run once on connection. Power controls operation/heating. Missing values show --. Energy values are device totals.</string>
|
||||
<string name="ble_debug_device_get">Query Device</string>
|
||||
<string name="ble_debug_state_get">Query State</string>
|
||||
<string name="ble_debug_power_on">Start (10 min)</string>
|
||||
<string name="ble_debug_power_off">Stop</string>
|
||||
<string name="ble_debug_clear">Clear Log</string>
|
||||
<string name="ble_debug_back">Back to Devices</string>
|
||||
<string name="ble_debug_start_confirm">The device will operate/heat under firmware temperature control for 10 minutes. Start now?</string>
|
||||
<string name="ble_debug_not_ready">The channel is not ready, disconnected, or the queue is full. Check the log.</string>
|
||||
<string name="ble_debug_channel_failed">The business BLE channel failed. Check the log and reconnect from the device list.</string>
|
||||
<string name="ble_debug_field">%1$s: %2$s</string>
|
||||
<string name="ble_debug_device_section">Device Information</string>
|
||||
<string name="ble_debug_measurements_section">Measurements</string>
|
||||
<string name="ble_debug_running_section">Operating State</string>
|
||||
<string name="ble_debug_fault_section">Fault Information</string>
|
||||
<string name="ble_debug_log_section">Activity Log</string>
|
||||
<string name="ble_debug_updated">Updated: %1$s\nSource: %2$s\nDevice time: %3$s</string>
|
||||
<string name="ble_debug_waiting_state">Waiting for device state</string>
|
||||
<string name="ble_debug_time_not_set">Clock not set</string>
|
||||
<string name="ble_debug_temperature_unavailable">Temperature unavailable</string>
|
||||
<string name="ble_debug_on">On</string>
|
||||
<string name="ble_debug_off">Off</string>
|
||||
<string name="ble_debug_heating">Heating</string>
|
||||
<string name="ble_debug_not_heating">Not heating</string>
|
||||
<string name="ble_debug_idle">Idle</string>
|
||||
<string name="ble_debug_holding">Holding temperature</string>
|
||||
<string name="ble_debug_tripped">Protection triggered</string>
|
||||
<string name="ble_debug_seconds">s</string>
|
||||
<string name="ble_debug_no_fault">No faults</string>
|
||||
<string name="ble_debug_fault_bits">Fault bits: %1$d</string>
|
||||
<string name="ble_debug_unknown_fault">Undefined fault bits: %1$d</string>
|
||||
<string name="ble_debug_fault_e01">E01 Overvoltage: supply voltage too high</string>
|
||||
<string name="ble_debug_fault_e02">E02 Undervoltage: supply voltage too low</string>
|
||||
<string name="ble_debug_fault_e03">E03 Overcurrent: operating current too high</string>
|
||||
<string name="ble_debug_fault_e04">E04 Temperature outside sensor range</string>
|
||||
<string name="ble_debug_fault_e05">E05 Temperature sensor fault: heating stopped</string>
|
||||
<string name="ble_debug_fault_e06">E06 Metering communication fault</string>
|
||||
<string name="ble_debug_fault_e07">E07 Dry heating detected</string>
|
||||
<string name="ble_debug_fault_e08">E08 Leakage current fault</string>
|
||||
<string name="ble_field_mac_address">Device ID</string>
|
||||
<string name="ble_field_base_mac">Base MAC</string>
|
||||
<string name="ble_field_device_type">Device type</string>
|
||||
<string name="ble_field_serial_number">Serial number</string>
|
||||
<string name="ble_field_firmware">Firmware</string>
|
||||
<string name="ble_field_hardware">Hardware</string>
|
||||
<string name="ble_field_sku">Device SKU</string>
|
||||
<string name="ble_field_voltage">Voltage</string>
|
||||
<string name="ble_field_current1">Channel 1 current</string>
|
||||
<string name="ble_field_current2">Channel 2 current</string>
|
||||
<string name="ble_field_power">Power</string>
|
||||
<string name="ble_field_temperature">Temperature</string>
|
||||
<string name="ble_field_leakage">Leakage current</string>
|
||||
<string name="ble_field_total_energy">Total energy</string>
|
||||
<string name="ble_field_today_energy">Today energy</string>
|
||||
<string name="ble_field_power_on">Power switch</string>
|
||||
<string name="ble_field_heating">Heating state</string>
|
||||
<string name="ble_field_running_state">Operating state</string>
|
||||
<string name="ble_field_remaining">Time remaining</string>
|
||||
</resources>
|
||||
17
app/src/main/res/values-en/change_binding_strings.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="change_phone_title">Change Bound Phone</string>
|
||||
<string name="change_email_title">Change Bound Email</string>
|
||||
<string name="change_phone_bound">Bound Phone Number</string>
|
||||
<string name="change_phone_unbound">No phone number bound</string>
|
||||
<string name="change_binding_code_label">Verification Code</string>
|
||||
<string name="change_binding_email_code_label">Email Verification Code</string>
|
||||
<string name="change_binding_code_hint">Enter verification code</string>
|
||||
<string name="change_binding_email_hint">Enter email</string>
|
||||
<string name="change_binding_get_code">Get Code</string>
|
||||
<string name="change_phone_confirm">Verify & Rebind</string>
|
||||
<string name="change_email_confirm">Verify & Bind Email</string>
|
||||
<string name="change_binding_code_required">Enter a valid verification code</string>
|
||||
<string name="change_binding_pending">Binding is not available yet</string>
|
||||
<string name="change_binding_send_pending">Verification codes are not available yet</string>
|
||||
</resources>
|
||||
30
app/src/main/res/values-en/points_order_detail_resources.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="points_detail_pickup_information">Pickup Information</string>
|
||||
<string name="points_detail_pickup_point">Pickup Point</string>
|
||||
<string name="points_detail_address">Address</string>
|
||||
<string name="points_detail_contact_phone">Contact Phone</string>
|
||||
<string name="points_detail_business_hours">Business Hours</string>
|
||||
<string name="points_detail_navigate">Navigate</string>
|
||||
<string name="points_detail_pickup_code">Pickup Code</string>
|
||||
<string name="points_detail_goods_information">Order Information</string>
|
||||
<string name="points_detail_total_price">Total Points Used</string>
|
||||
<string name="points_detail_order_information">Order Info</string>
|
||||
<string name="points_detail_order_number">Order No.</string>
|
||||
<string name="points_detail_redeemed_at">Redeemed At</string>
|
||||
<string name="points_detail_shipped_at">Shipped At</string>
|
||||
<string name="points_detail_recipient">Recipient</string>
|
||||
<string name="points_detail_shipping_address">Shipping Address</string>
|
||||
<string name="points_detail_customer_service">Customer Service</string>
|
||||
<string name="points_detail_pending_hint">Please pick up your order at the pickup point with the pickup code within 7 days</string>
|
||||
<string name="points_detail_picked_up_hint">Your order has been picked up. Thank you for redeeming your green points.</string>
|
||||
<string name="points_detail_cancelled_hint">This order has been cancelled. Its pickup code is no longer valid.</string>
|
||||
<string name="points_detail_code_used">This pickup code has been used</string>
|
||||
<string name="points_detail_code_invalid">Cancelled order. This pickup code is no longer valid.</string>
|
||||
<string name="points_detail_not_shipped">Not shipped</string>
|
||||
<string name="points_detail_error">Unable to load order details. Tap to retry.</string>
|
||||
<string name="points_detail_navigation_demo">%1$s\n%2$s\nBusiness hours: %3$s\n\nThis is a demo pickup point. Map navigation is not connected yet.</string>
|
||||
<string name="points_detail_service_demo">Contact phone: %1$s\n\nThis is a demo number. Actual customer service details will be supplied by the API.</string>
|
||||
|
||||
</resources>
|
||||
19
app/src/main/res/values-en/points_order_resources.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="points_order_title">Points Orders</string>
|
||||
<string name="points_order_all">All</string>
|
||||
<string name="points_order_pending">Pending Pickup</string>
|
||||
<string name="points_order_picked_up">Picked Up</string>
|
||||
<string name="points_order_cancelled">Cancelled</string>
|
||||
<string name="points_order_number">Order No.%1$s</string>
|
||||
<string name="points_order_price">%1$s credits plus %2$s yuan</string>
|
||||
<string name="points_order_pickup_code">Pickup Code: %1$s</string>
|
||||
<string name="points_order_pickup_point">Pickup Point: %1$s</string>
|
||||
<string name="points_order_view_detail">View Detail ›</string>
|
||||
<string name="points_order_empty">No matching points orders</string>
|
||||
<string name="points_order_load_failed">Unable to load points orders</string>
|
||||
<string name="points_order_detail_title">Order Details</string>
|
||||
<string name="points_order_close">Close</string>
|
||||
|
||||
</resources>
|
||||
26
app/src/main/res/values-en/shipping_address_strings.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="address_list_title">Shipping Addresses</string>
|
||||
<string name="address_add_title">Add Address</string>
|
||||
<string name="address_edit_title">Edit Address</string>
|
||||
<string name="address_summary">%1$d addresses · Default address used first</string>
|
||||
<string name="address_add">Add New Address</string>
|
||||
<string name="address_edit">Edit</string>
|
||||
<string name="address_delete">Delete</string>
|
||||
<string name="address_delete_confirm">Delete this shipping address?</string>
|
||||
<string name="address_default">Default</string>
|
||||
<string name="address_default_label">Set as default address</string>
|
||||
<string name="address_recipient">Recipient</string>
|
||||
<string name="address_mobile">Mobile Number</string>
|
||||
<string name="address_region">Region</string>
|
||||
<string name="address_detail">Detailed Address</string>
|
||||
<string name="address_recipient_hint">Enter recipient name</string>
|
||||
<string name="address_mobile_hint">Enter 11-digit mobile number</string>
|
||||
<string name="address_region_hint">Enter province / city / district</string>
|
||||
<string name="address_detail_hint">Street, building and room</string>
|
||||
<string name="address_save">Save</string>
|
||||
<string name="address_shipping_hint">Please ensure delivery details are accurate. This information is used only for shipping and delivery.</string>
|
||||
<string name="address_empty">No shipping addresses. Add one below.</string>
|
||||
<string name="address_mobile_invalid">Enter a valid 11-digit mobile number</string>
|
||||
<string name="address_preview">Local address preview. Not synced to the server.</string>
|
||||
</resources>
|
||||
7
app/src/main/res/values-en/shop_all_goods_strings.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="shop_all_goods_title">All Products</string>
|
||||
<string name="shop_all_goods_empty">No products. Tap to refresh.</string>
|
||||
<string name="shop_all_goods_retry">Unable to load products. Tap to retry.</string>
|
||||
<string name="shop_all_goods_load_failed">Unable to load products. Please try again later.</string>
|
||||
</resources>
|
||||
63
app/src/main/res/values/ble_debug_strings.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="ble_debug_title">纯 BLE 临时调试</string>
|
||||
<string name="ble_debug_device">设备:%1$s\nSKU:%2$s 固件:%3$s</string>
|
||||
<string name="ble_debug_hint">按协议展示查询回复和主动上报的最新数据,不自动轮询。进入时查询一次设备/状态并校时。开关控制的是运行/加热;未返回的数值显示 --,电量为设备累计值。</string>
|
||||
<string name="ble_debug_device_get">查询设备信息</string>
|
||||
<string name="ble_debug_state_get">查询实时状态</string>
|
||||
<string name="ble_debug_power_on">启动运行(10分钟)</string>
|
||||
<string name="ble_debug_power_off">停止运行</string>
|
||||
<string name="ble_debug_clear">清空日志</string>
|
||||
<string name="ble_debug_back">返回设备列表</string>
|
||||
<string name="ble_debug_start_confirm">启动后设备会按照固件温控逻辑运行/加热,时长为 10 分钟。确认启动?</string>
|
||||
<string name="ble_debug_not_ready">业务通道尚未就绪、连接已断开或请求队列已满,请查看日志</string>
|
||||
<string name="ble_debug_channel_failed">业务蓝牙通道异常,请查看日志并返回设备列表重新连接</string>
|
||||
<string name="ble_debug_field">%1$s:%2$s</string>
|
||||
<string name="ble_debug_device_section">设备信息</string>
|
||||
<string name="ble_debug_measurements_section">实时计量</string>
|
||||
<string name="ble_debug_running_section">运行状态</string>
|
||||
<string name="ble_debug_fault_section">故障信息</string>
|
||||
<string name="ble_debug_log_section">操作记录</string>
|
||||
<string name="ble_debug_updated">最近更新:%1$s\n数据来源:%2$s\n设备时间:%3$s</string>
|
||||
<string name="ble_debug_waiting_state">尚未收到状态数据</string>
|
||||
<string name="ble_debug_time_not_set">未校时</string>
|
||||
<string name="ble_debug_temperature_unavailable">温度不可用</string>
|
||||
<string name="ble_debug_on">已开启</string>
|
||||
<string name="ble_debug_off">已关闭</string>
|
||||
<string name="ble_debug_heating">正在加热</string>
|
||||
<string name="ble_debug_not_heating">未加热</string>
|
||||
<string name="ble_debug_idle">空闲</string>
|
||||
<string name="ble_debug_holding">保温</string>
|
||||
<string name="ble_debug_tripped">保护停机</string>
|
||||
<string name="ble_debug_seconds">秒</string>
|
||||
<string name="ble_debug_no_fault">无故障</string>
|
||||
<string name="ble_debug_fault_bits">故障位:%1$d</string>
|
||||
<string name="ble_debug_unknown_fault">未定义的故障位:%1$d</string>
|
||||
<string name="ble_debug_fault_e01">E01 过压:电源电压过高</string>
|
||||
<string name="ble_debug_fault_e02">E02 欠压:电源电压过低</string>
|
||||
<string name="ble_debug_fault_e03">E03 过流:工作电流过大</string>
|
||||
<string name="ble_debug_fault_e04">E04 温度超量程:温度超出检测范围</string>
|
||||
<string name="ble_debug_fault_e05">E05 温度传感器异常:已停止加热</string>
|
||||
<string name="ble_debug_fault_e06">E06 计量通信异常:电参数检测异常</string>
|
||||
<string name="ble_debug_fault_e07">E07 干烧异常:检测到干烧异常</string>
|
||||
<string name="ble_debug_fault_e08">E08 漏电差流异常:检测到漏电异常</string>
|
||||
<string name="ble_field_mac_address">设备编号</string>
|
||||
<string name="ble_field_base_mac">基础 MAC</string>
|
||||
<string name="ble_field_device_type">设备类型</string>
|
||||
<string name="ble_field_serial_number">序列号</string>
|
||||
<string name="ble_field_firmware">固件版本</string>
|
||||
<string name="ble_field_hardware">硬件版本</string>
|
||||
<string name="ble_field_sku">设备版本(SKU)</string>
|
||||
<string name="ble_field_voltage">电压</string>
|
||||
<string name="ble_field_current1">第 1 路电流</string>
|
||||
<string name="ble_field_current2">第 2 路电流</string>
|
||||
<string name="ble_field_power">功率</string>
|
||||
<string name="ble_field_temperature">温度</string>
|
||||
<string name="ble_field_leakage">漏电差流</string>
|
||||
<string name="ble_field_total_energy">设备总累计电量</string>
|
||||
<string name="ble_field_today_energy">今日累计电量</string>
|
||||
<string name="ble_field_power_on">运行开关</string>
|
||||
<string name="ble_field_heating">加热状态</string>
|
||||
<string name="ble_field_running_state">运行状态</string>
|
||||
<string name="ble_field_remaining">剩余时间</string>
|
||||
</resources>
|
||||
20
app/src/main/res/values/ble_debug_styles.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="BleDebugSectionTitle">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_marginTop">16dp</item>
|
||||
<item name="android:layout_marginBottom">6dp</item>
|
||||
<item name="android:textColor">#222222</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
<style name="BleDebugFieldText">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:textColor">#333333</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:lineSpacingExtra">5dp</item>
|
||||
<item name="android:textIsSelectable">true</item>
|
||||
</style>
|
||||
</resources>
|
||||
38
app/src/main/res/values/change_binding_resources.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="change_phone_title">更换绑定手机号</string>
|
||||
<string name="change_email_title">更换绑定邮箱</string>
|
||||
<string name="change_phone_bound">已绑定手机号</string>
|
||||
<string name="change_phone_unbound">暂未绑定手机号</string>
|
||||
<string name="change_binding_code_label">验证码</string>
|
||||
<string name="change_binding_email_code_label">邮箱验证码</string>
|
||||
<string name="change_binding_code_hint">请输入验证码</string>
|
||||
<string name="change_binding_email_hint">请输入邮箱</string>
|
||||
<string name="change_binding_get_code">获取验证码</string>
|
||||
<string name="change_phone_confirm">验证并更换绑定</string>
|
||||
<string name="change_email_confirm">验证并绑定邮箱</string>
|
||||
<string name="change_binding_code_required">请输入有效验证码</string>
|
||||
<string name="change_binding_pending">绑定功能暂未开放</string>
|
||||
<string name="change_binding_send_pending">验证码服务暂未开放</string>
|
||||
<color name="change_binding_label">#6B7280</color>
|
||||
<color name="change_binding_text">#1F2329</color>
|
||||
<color name="change_binding_orange">#FF6900</color>
|
||||
<color name="change_binding_code_background">#FFF3EA</color>
|
||||
|
||||
<style name="ChangeBindingLabel">
|
||||
<item name="android:textColor">@color/change_binding_label</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
</style>
|
||||
|
||||
<style name="ChangeBindingInput">
|
||||
<item name="android:background">@drawable/personal_nickname_input_bg</item>
|
||||
<item name="android:textColor">@color/change_binding_text</item>
|
||||
<item name="android:textColorHint">@color/change_binding_label</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:paddingStart">18dp</item>
|
||||
<item name="android:paddingEnd">12dp</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -6,6 +6,7 @@
|
||||
<color name="transparent">#00000000</color>
|
||||
<color name="color_white">#FFFFFF</color>
|
||||
<color name="white">#FFFFFF</color>
|
||||
<color name="f9f9f9">#F9F9F9</color>
|
||||
|
||||
<color name="divider">#EEEEEE</color>
|
||||
|
||||
|
||||
64
app/src/main/res/values/points_order_detail_resources.xml
Normal file
@@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="points_detail_pickup_information">自提信息</string>
|
||||
<string name="points_detail_pickup_point">自提点</string>
|
||||
<string name="points_detail_address">地址</string>
|
||||
<string name="points_detail_contact_phone">联系电话</string>
|
||||
<string name="points_detail_business_hours">营业时间</string>
|
||||
<string name="points_detail_navigate">导航</string>
|
||||
<string name="points_detail_pickup_code">提货码</string>
|
||||
<string name="points_detail_goods_information">商品信息</string>
|
||||
<string name="points_detail_total_price">兑换合计</string>
|
||||
<string name="points_detail_order_information">订单信息</string>
|
||||
<string name="points_detail_order_number">订单号</string>
|
||||
<string name="points_detail_redeemed_at">兑换时间</string>
|
||||
<string name="points_detail_shipped_at">发货时间</string>
|
||||
<string name="points_detail_recipient">收货人</string>
|
||||
<string name="points_detail_shipping_address">收货地址</string>
|
||||
<string name="points_detail_customer_service">联系客服</string>
|
||||
<string name="points_detail_pending_hint">请在 7 天内凭提货码前往自提点领取商品</string>
|
||||
<string name="points_detail_picked_up_hint">该订单已完成提货,感谢您参与环保积分兑换</string>
|
||||
<string name="points_detail_cancelled_hint">该订单已取消,请勿再使用提货码领取商品</string>
|
||||
<string name="points_detail_code_used">该提货码已使用</string>
|
||||
<string name="points_detail_code_invalid">订单已取消,提货码已失效</string>
|
||||
<string name="points_detail_not_shipped">未发货</string>
|
||||
<string name="points_detail_error">订单详情加载失败,点击重试</string>
|
||||
<string name="points_detail_navigation_demo">%1$s\n%2$s\n营业时间:%3$s\n\n当前自提点为演示数据,暂未接入地图导航。</string>
|
||||
<string name="points_detail_service_demo">联系电话:%1$s\n\n当前为演示号码,真实客服联系方式待接口接入后提供。</string>
|
||||
|
||||
<color name="points_detail_value">#1F2329</color>
|
||||
<color name="points_detail_divider">#EDEFF2</color>
|
||||
|
||||
<style name="PointsOrderDetailCard">
|
||||
<item name="cardBackgroundColor">@android:color/white</item>
|
||||
<item name="cardCornerRadius">16dp</item>
|
||||
<item name="cardElevation">1dp</item>
|
||||
<item name="cardPreventCornerOverlap">false</item>
|
||||
</style>
|
||||
|
||||
<style
|
||||
name="PointsOrderDetailHeading"
|
||||
parent="PointsOrderText">
|
||||
<item name="android:fontFamily">sans-serif-black</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
<item name="android:minHeight">19dp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
|
||||
<style
|
||||
name="PointsOrderDetailValue"
|
||||
parent="PointsOrderText">
|
||||
<item name="android:gravity">top</item>
|
||||
<item name="android:minHeight">18dp</item>
|
||||
<item name="android:textColor">@color/points_detail_value</item>
|
||||
<item name="android:textSize">12sp</item>
|
||||
</style>
|
||||
|
||||
<style
|
||||
name="PointsOrderDetailLabel"
|
||||
parent="PointsOrderDetailValue">
|
||||
<item name="android:textColor">@color/points_order_muted</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
58
app/src/main/res/values/points_order_resources.xml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="points_order_title">积分订单</string>
|
||||
<string name="points_order_all">全部</string>
|
||||
<string name="points_order_pending">待自提</string>
|
||||
<string name="points_order_picked_up">已提货</string>
|
||||
<string name="points_order_cancelled">已取消</string>
|
||||
<string name="points_order_number">订单号:%1$s</string>
|
||||
<string name="points_order_price">%1$s 积分 + %2$s 元</string>
|
||||
<string name="points_order_pickup_code">提货码:%1$s</string>
|
||||
<string name="points_order_pickup_point">自提点:%1$s</string>
|
||||
<string name="points_order_view_detail">查看详情 ›</string>
|
||||
<string name="points_order_empty">暂无相关积分订单</string>
|
||||
<string name="points_order_load_failed">积分订单加载失败</string>
|
||||
<string name="points_order_detail_title">订单详情</string>
|
||||
<string name="points_order_close">关闭</string>
|
||||
|
||||
<color name="points_order_text">#252529</color>
|
||||
<color name="points_order_muted">#9AA0A6</color>
|
||||
<color name="points_order_orange">#FF6900</color>
|
||||
<color name="points_order_pending_background">#FFF3EA</color>
|
||||
<color name="points_order_picked_up_background">#E9F7EF</color>
|
||||
<color name="points_order_cancelled_background">#F5F6F8</color>
|
||||
<color name="points_order_pickup_border">#FFE3CC</color>
|
||||
<color name="points_order_location">#6B7280</color>
|
||||
|
||||
<style
|
||||
name="PointsOrderText"
|
||||
parent="LoginDesignText">
|
||||
<item name="android:textColor">@color/points_order_text</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
</style>
|
||||
|
||||
<style
|
||||
name="PointsOrderSecondary"
|
||||
parent="PointsOrderText">
|
||||
<item name="android:textColor">@color/points_order_muted</item>
|
||||
<item name="android:textSize">11sp</item>
|
||||
</style>
|
||||
|
||||
<style
|
||||
name="PointsOrderFilter"
|
||||
parent="PointsOrderText">
|
||||
<item name="android:background">@drawable/points_order_filter_bg</item>
|
||||
<item name="android:clickable">true</item>
|
||||
<item name="android:focusable">true</item>
|
||||
<item name="android:gravity">start|center_vertical</item>
|
||||
<item name="android:maxLines">1</item>
|
||||
<item name="android:paddingBottom">4dp</item>
|
||||
<item name="android:textColor">@color/points_order_filter_text</item>
|
||||
<item name="android:textSize">12sp</item>
|
||||
<item name="android:autoSizeTextType">uniform</item>
|
||||
<item name="android:autoSizeMinTextSize">10sp</item>
|
||||
<item name="android:autoSizeMaxTextSize">12sp</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
60
app/src/main/res/values/shipping_address_resources.xml
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="address_list_title">收货地址管理</string>
|
||||
<string name="address_add_title">新增收货地址</string>
|
||||
<string name="address_edit_title">编辑收货地址</string>
|
||||
<string name="address_summary">共 %1$d 个地址 · 优先使用默认地址</string>
|
||||
<string name="address_add">新增收货地址</string>
|
||||
<string name="address_edit">编辑</string>
|
||||
<string name="address_delete">删除</string>
|
||||
<string name="address_delete_confirm">确定删除该收货地址吗?</string>
|
||||
<string name="address_default">默认</string>
|
||||
<string name="address_default_label">设为默认收货地址</string>
|
||||
<string name="address_recipient">收货人</string>
|
||||
<string name="address_mobile">手机号</string>
|
||||
<string name="address_region">所在地区</string>
|
||||
<string name="address_detail">详细地址</string>
|
||||
<string name="address_recipient_hint">请输入收货人姓名</string>
|
||||
<string name="address_mobile_hint">请输入11位手机号</string>
|
||||
<string name="address_region_hint">请输入省 / 市 / 区</string>
|
||||
<string name="address_detail_hint">街道、小区、楼栋及门牌号</string>
|
||||
<string name="address_save">保存</string>
|
||||
<string name="address_shipping_hint">请确保收货信息准确,配送人员将据此核实;以上信息仅用于商品配送。</string>
|
||||
<string name="address_empty">暂无收货地址,请先新增</string>
|
||||
<string name="address_mobile_invalid">请输入有效的11位手机号</string>
|
||||
<string name="address_preview">当前为本地地址预览,尚未同步服务器</string>
|
||||
|
||||
<style name="AddressFormLabel">
|
||||
<item name="android:textColor">@color/personal_info_text</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:fontFamily">sans-serif-medium</item>
|
||||
<item name="android:gravity">center_vertical</item>
|
||||
</style>
|
||||
|
||||
<style name="AddressFormInput">
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:textColor">@color/change_binding_text</item>
|
||||
<item name="android:textColorHint">#C5CAD3</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:padding">0dp</item>
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AddressPrimaryButton">
|
||||
<item name="android:background">@drawable/login_design_button_bg</item>
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:clickable">true</item>
|
||||
<item name="android:focusable">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AddressItemAction">
|
||||
<item name="android:background">@drawable/address_action_bg</item>
|
||||
<item name="android:textColor">@color/personal_info_text</item>
|
||||
<item name="android:textSize">11sp</item>
|
||||
<item name="android:gravity">center</item>
|
||||
<item name="android:clickable">true</item>
|
||||
<item name="android:focusable">true</item>
|
||||
</style>
|
||||
</resources>
|
||||
7
app/src/main/res/values/shop_all_goods_strings.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="shop_all_goods_title">所有商品</string>
|
||||
<string name="shop_all_goods_empty">暂无商品,点击刷新</string>
|
||||
<string name="shop_all_goods_retry">商品加载失败,点击重试</string>
|
||||
<string name="shop_all_goods_load_failed">商品加载失败,请稍后重试</string>
|
||||
</resources>
|
||||