|
@@ -2,54 +2,173 @@
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
<include
|
|
|
android:id="@+id/toolbar_include"
|
|
|
layout="@layout/common_toolbar_layout" />
|
|
|
|
|
|
- <FrameLayout
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
android:layout_marginEnd="14dp"
|
|
|
android:layout_marginStart="14dp"
|
|
|
- android:id="@+id/fl_setting"
|
|
|
+ android:paddingBottom="12dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingTop="12dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/toolbar_include"
|
|
|
+ android:id="@+id/ll_subject"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:background="@drawable/shape_white_10dp"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="36dp"
|
|
|
- android:layout_marginTop="12dp"
|
|
|
- android:background="@drawable/shape_ffffff_6dp_border_e3efed_1dp"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/toolbar_include">
|
|
|
-
|
|
|
+ android:layout_height="wrap_content">
|
|
|
<TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
- android:drawableStart="@drawable/icon_create_vip_course_options"
|
|
|
android:drawablePadding="4dp"
|
|
|
- android:text="添加课程方案"
|
|
|
+ android:drawableStart="@drawable/icon_vip_course_setting_subject_tag"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
android:textColor="@color/color_333333"
|
|
|
- android:textSize="@dimen/sp_15" />
|
|
|
- </FrameLayout>
|
|
|
+ android:text="课程声部"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
|
|
- <com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
|
- android:id="@+id/refreshLayout"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/fl_setting"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:srlEnableLoadMore="false">
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:scrollbars="none"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:id="@+id/recyclerView_subject"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:layout_marginStart="14dp"
|
|
|
+ android:paddingBottom="12dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingTop="12dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/ll_subject"
|
|
|
+ android:id="@+id/ll_time"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:background="@drawable/shape_white_10dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:drawablePadding="4dp"
|
|
|
+ android:drawableStart="@drawable/icon_vip_course_setting_time_tag"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:text="课程时长"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- android:id="@+id/recyclerView"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/fl_setting"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
+ android:scrollbars="none"
|
|
|
android:layout_marginTop="12dp"
|
|
|
+ android:id="@+id/recyclerView_time"
|
|
|
android:overScrollMode="never"
|
|
|
- android:scrollbars="none" />
|
|
|
- </com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:layout_marginStart="14dp"
|
|
|
+ android:paddingBottom="12dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingTop="12dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/ll_time"
|
|
|
+ android:id="@+id/ll_price"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:background="@drawable/shape_white_10dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_price_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:drawablePadding="4dp"
|
|
|
+ android:drawableStart="@drawable/icon_vip_course_setting_price_tag"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:text="课时单价"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:minWidth="75dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_price_title"
|
|
|
+ android:hint="200~500"
|
|
|
+ android:paddingStart="5dp"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:maxLength="5"
|
|
|
+ android:inputType="number"
|
|
|
+ android:id="@+id/edit_price"
|
|
|
+ android:textColorHint="@color/color_66000000"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:background="@drawable/shape_f8f8f8_4dp"
|
|
|
+ android:layout_height="26dp"/>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/edit_price"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/edit_price"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/edit_price"
|
|
|
+ android:id="@+id/tv_price_unit"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:text="元"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_tip1"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/ll_price"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/ll_price"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/ll_price"
|
|
|
+ tools:text="扣除应缴税金和平台服务费后\n您的课程预计收入为:单课时 224.00 元/节"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:paddingTop="12dp"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_tip2"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/tv_tip1"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_tip1"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_tip1"
|
|
|
+ tools:text="元/节 实际课程收入按学生实际付款金额计算\n您的课程收入将在课程结束"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_confirm"
|
|
|
+ android:layout_marginEnd="28dp"
|
|
|
+ android:layout_marginStart="28dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:background="@drawable/shape_2dc7aa_39dp"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_tip2"
|
|
|
+ android:textSize="@dimen/sp_18"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:text="@string/confirm_str"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"/>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|