|
@@ -1,106 +1,113 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<FrameLayout 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="wrap_content"
|
|
|
- android:background="@drawable/shape_f8f9fc_top_12dp"
|
|
|
- android:paddingBottom="30dp">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/color_40000000">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_title"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="18dp"
|
|
|
- android:includeFontPadding="false"
|
|
|
- android:text="提交作业"
|
|
|
- android:textColor="@color/color_333333"
|
|
|
- android:textSize="@dimen/sp_18"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/iv_close"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:padding="12dp"
|
|
|
- android:src="@drawable/icon_close_dialog_32_32"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
|
|
+ android:background="@drawable/shape_f8f9fc_top_12dp"
|
|
|
+ android:paddingBottom="30dp">
|
|
|
|
|
|
- <FrameLayout
|
|
|
- android:id="@+id/fl_input"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="108dp"
|
|
|
- android:layout_marginStart="14dp"
|
|
|
- android:layout_marginTop="18dp"
|
|
|
- android:layout_marginEnd="14dp"
|
|
|
- android:background="@drawable/shape_white_10dp"
|
|
|
- android:minHeight="108dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tv_title">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="18dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="提交作业"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:textSize="@dimen/sp_18"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
- android:id="@+id/recyclerView"
|
|
|
- android:visibility="gone"
|
|
|
- android:layout_marginStart="7dp"
|
|
|
- android:layout_marginEnd="7dp"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- android:layout_width="match_parent"
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_close"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:overScrollMode="never"
|
|
|
- android:scrollbars="none" />
|
|
|
+ android:padding="12dp"
|
|
|
+ android:src="@drawable/icon_close_dialog_32_32"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:id="@+id/ll_upload_empty_view"
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fl_input"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@drawable/shape_dotted_line_d9d9d9_10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:layout_height="108dp"
|
|
|
+ android:layout_marginStart="14dp"
|
|
|
+ android:layout_marginTop="18dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:background="@drawable/shape_white_10dp"
|
|
|
+ android:minHeight="108dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/recyclerView"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:src="@drawable/icon_upload_video_tip" />
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_marginStart="7dp"
|
|
|
+ android:layout_marginEnd="7dp"
|
|
|
+ android:overScrollMode="never"
|
|
|
+ android:scrollbars="none"
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="5dp"
|
|
|
- android:includeFontPadding="false"
|
|
|
- android:text="上传视频"
|
|
|
- android:textColor="@color/color_333333"
|
|
|
- android:textSize="@dimen/sp_14"
|
|
|
- android:textStyle="bold" />
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_upload_empty_view"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@drawable/shape_dotted_line_d9d9d9_10dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="5dp"
|
|
|
- android:includeFontPadding="false"
|
|
|
- android:text="(最多3个)"
|
|
|
- android:textColor="@color/color_999999"
|
|
|
- android:textSize="@dimen/sp_12"
|
|
|
- android:textStyle="bold" />
|
|
|
- </LinearLayout>
|
|
|
- </FrameLayout>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/icon_upload_video_tip" />
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="上传视频"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_confirm"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="44dp"
|
|
|
- android:layout_marginStart="28dp"
|
|
|
- android:layout_marginTop="30dp"
|
|
|
- android:layout_marginEnd="28dp"
|
|
|
- android:background="@drawable/shape_2dc7aa_39dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="提交"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/sp_16"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/fl_input" />
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="5dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="(最多3个)"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ android:textStyle="bold" />
|
|
|
+ </LinearLayout>
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_confirm"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="44dp"
|
|
|
+ android:layout_marginStart="28dp"
|
|
|
+ android:layout_marginTop="30dp"
|
|
|
+ android:layout_marginEnd="28dp"
|
|
|
+ android:background="@drawable/shape_2dc7aa_39dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="提交"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/fl_input" />
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+</FrameLayout>
|