Files
ElectricGriddlePro/app/src/main/res/layout/after_sales_apply_layout.xml
fengjignqi 77549b1f4e 更新
2026-11-13 13:51:44 +08:00

251 lines
10 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:background="#FFFFFF"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="48dp">
<ImageView
android:id="@+id/iv_after_sales_back"
android:layout_width="44dp"
android:layout_height="match_parent"
android:padding="13dp"
android:src="@mipmap/icon_cart_back"
android:contentDescription="@string/my_order_back"
android:clickable="true"
android:focusable="true" />
<TextView
style="@style/MyOrderText"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginHorizontal="48dp"
android:gravity="center"
android:textSize="16sp"
android:textStyle="bold"
android:text="@string/after_sales_title" />
</RelativeLayout>
<!-- 宽屏限制内容宽度,窄屏及键盘弹出时保留纵向滚动。 -->
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true"
android:background="#F5F5F5">
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
android:id="@+id/ll_after_sales_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical"
android:visibility="invisible"
app:maxContentWidth="720dp">
<LinearLayout
style="@style/OrderDetailSection"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_after_sales_goods"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
android:overScrollMode="never" />
</LinearLayout>
<LinearLayout
style="@style/OrderDetailSection"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
style="@style/AfterSalesHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_type" />
<TextView
android:id="@+id/tv_after_sales_refund_only"
style="@style/AfterSalesOption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_refund_only" />
<TextView
android:id="@+id/tv_after_sales_return_refund"
style="@style/AfterSalesOption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_return_refund" />
<TextView
android:id="@+id/tv_after_sales_exchange"
style="@style/AfterSalesOption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_exchange" />
</LinearLayout>
<LinearLayout
style="@style/OrderDetailSection"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
style="@style/AfterSalesHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_amount" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/tv_after_sales_amount"
style="@style/MyOrderText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"
android:textStyle="bold"
android:textColor="#FF3B30" />
<TextView
android:id="@+id/tv_after_sales_max_amount"
style="@style/MyOrderText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="12sp"
android:textColor="#FF3B30" />
</LinearLayout>
<ImageView
android:id="@+id/iv_after_sales_edit_amount"
android:layout_width="48dp"
android:layout_height="48dp"
android:padding="11dp"
android:src="@mipmap/icon_fault_report_edit"
android:contentDescription="@string/after_sales_edit_amount"
android:clickable="true"
android:focusable="true" />
</LinearLayout>
</LinearLayout>
<LinearLayout
style="@style/OrderDetailSection"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
style="@style/AfterSalesHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_reason" />
<TextView
android:id="@+id/tv_after_sales_reason_unwanted"
style="@style/AfterSalesOption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_reason_unwanted" />
<TextView
android:id="@+id/tv_after_sales_reason_quality"
style="@style/AfterSalesOption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_reason_quality" />
<TextView
android:id="@+id/tv_after_sales_reason_description"
style="@style/AfterSalesOption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_reason_description" />
</LinearLayout>
<LinearLayout
style="@style/OrderDetailSection"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
style="@style/AfterSalesHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_description" />
<EditText
android:id="@+id/et_after_sales_description"
style="@style/MyOrderText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="122dp"
android:gravity="top|start"
android:padding="12dp"
android:background="@drawable/after_sales_description_bg"
android:hint="@string/after_sales_description_hint"
android:inputType="textMultiLine|textCapSentences"
android:maxLength="500" />
</LinearLayout>
<LinearLayout
style="@style/OrderDetailSection"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
style="@style/AfterSalesHeading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/after_sales_evidence" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_after_sales_evidence"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:nestedScrollingEnabled="false"
android:overScrollMode="never" />
</LinearLayout>
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
</androidx.core.widget.NestedScrollView>
<com.ckkj.griddle.custom.view.AdaptiveContentLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingHorizontal="24dp"
android:paddingVertical="20dp"
android:orientation="vertical"
app:maxContentWidth="720dp">
<TextView
android:id="@+id/tv_after_sales_submit"
style="@style/OrderDetailAction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:enabled="false"
android:background="@drawable/order_detail_primary"
android:textColor="#FFFFFF"
android:text="@string/after_sales_submit" />
</com.ckkj.griddle.custom.view.AdaptiveContentLayout>
</LinearLayout>