|
|
@@ -0,0 +1,119 @@
|
|
|
+<?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:background="@color/colorPrimary"
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
+ android:focusable="true"
|
|
|
+ android:focusableInTouchMode="true"
|
|
|
+ android:orientation="vertical">
|
|
|
+ <!--启用深色模式之后,需要使用fitsSystemWindows来不让布局上滑-->
|
|
|
+
|
|
|
+ <include layout="@layout/view_toolbar" />
|
|
|
+ <!--阴影效果android:background="?android:attr/listDivider"-->
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:hint="优惠券标题"
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/et_coupon_title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:hint="封面URL"
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/et_cover_url"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:hint="跳转URL"
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/et_jump_url"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/text_normal_s" />
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <CheckBox
|
|
|
+ android:id="@+id/cb_enable"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:text="是否生效"
|
|
|
+ android:checked="true"/>
|
|
|
+
|
|
|
+ <android.widget.Button
|
|
|
+ android:id="@+id/btn_add_goods"
|
|
|
+ style="?android:attr/borderlessButtonStyle"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="@dimen/margin_default"
|
|
|
+ android:background="@drawable/selector_btn"
|
|
|
+ android:minHeight="0dp"
|
|
|
+ android:paddingTop="@dimen/padding_full_width"
|
|
|
+ android:paddingBottom="@dimen/padding_full_width"
|
|
|
+ android:text="立即添加"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textStyle="bold" />
|
|
|
+ </LinearLayout>
|
|
|
+ </ScrollView>
|
|
|
+</LinearLayout>
|