|
@@ -0,0 +1,136 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout 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">
|
|
|
+
|
|
|
+ <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"
|
|
|
+ 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" />
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:layout_marginStart="14dp"
|
|
|
+ android:layout_marginTop="18dp"
|
|
|
+ android:paddingTop="12dp"
|
|
|
+ android:paddingBottom="12dp"
|
|
|
+ android:background="@drawable/shape_white_10dp"
|
|
|
+ android:id="@+id/ll_mark"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.cooleshow.base.widgets.RatingBar
|
|
|
+ android:id="@+id/rating_bar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/dp_28"
|
|
|
+ android:gravity="center"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:starCount="5"
|
|
|
+ app:starEmpty="@drawable/icon_star_default"
|
|
|
+ app:starFill="@drawable/icon_star_select"
|
|
|
+ app:starImageSize="@dimen/dp_28"
|
|
|
+ app:starPadding="@dimen/dp_7"
|
|
|
+ app:starStep="5"
|
|
|
+ app:stepSize="Full" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title_hint"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="@dimen/dp_17"
|
|
|
+ android:text="如果满意请给五星好评喔~"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/rating_bar" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/fl_input"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="164dp"
|
|
|
+ android:layout_marginStart="14dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:background="@drawable/shape_white_8dp"
|
|
|
+ android:minHeight="164dp"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingTop="12dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:paddingBottom="18dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/ll_mark">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/et_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginBottom="20dp"
|
|
|
+ android:background="@color/transparent"
|
|
|
+ android:gravity="left"
|
|
|
+ android:hint="请输入您对本次课程老师教学的评价"
|
|
|
+ android:maxLength="200"
|
|
|
+ android:textColor="@color/black_333"
|
|
|
+ android:textColorHint="@color/color_aaaaaa"
|
|
|
+ android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_text_num"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="bottom|right"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="0/200"
|
|
|
+ android:textColor="@color/color_aaaaaa"
|
|
|
+ android:textSize="@dimen/sp_14" />
|
|
|
+ </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_18"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/fl_input" />
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|