纯蓝牙通信,个人中心相关。
This commit is contained in:
534
app/src/main/res/layout/points_order_detail.xml
Normal file
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>
|
||||
Reference in New Issue
Block a user