| | |
| | | android:scrollbars="none"> |
| | | |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:paddingBottom="20dp" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:text="找不到已购课程" |
| | | android:textColor="@color/textColor66" |
| | | android:textSize="14sp" |
| | | android:drawableStart="@mipmap/wenti" |
| | | android:drawablePadding="9dp" |
| | | android:padding="10dp" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | android:layout_marginTop="12dp" |
| | | android:id="@+id/tv_ask" |
| | | android:layout_marginEnd="11dp"/> |
| | | |
| | | <View |
| | | android:layout_width="29dp" |
| | | android:layout_height="6dp" |
| | | android:background="@drawable/bg_indicator_gradient" |
| | | app:layout_constraintEnd_toEndOf="@id/tv_1" |
| | | app:layout_constraintBottom_toBottomOf="@id/tv_1" |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="我的课程" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="15sp" |
| | | android:textStyle="bold" |
| | | app:layout_constraintBaseline_toBaselineOf="@id/tv_ask" |
| | | app:layout_constraintStart_toStartOf="@id/tv_1" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_1" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="课程筛选" |
| | | android:text="已购课程" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="18sp" |
| | | android:textSize="15sp" |
| | | android:textStyle="bold" |
| | | app:layout_constraintTop_toTopOf="parent" |
| | | app:layout_constraintStart_toStartOf="@id/et_search" /> |
| | | |
| | | android:layout_marginStart="20dp" |
| | | android:layout_marginTop="20dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_ask" |
| | | app:layout_constraintStart_toStartOf="parent" /> |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/rv_filter" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="14dp" |
| | | android:layout_marginTop="9dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_1" /> |
| | | <EditText |
| | | android:id="@+id/et_search" |
| | | android:id="@+id/rv_my" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginHorizontal="14dp" |
| | | android:layout_marginTop="16dp" |
| | | android:background="@drawable/bg_grey_16dp" |
| | | android:drawableStart="@mipmap/icon_search_gray" |
| | | android:drawablePadding="6dp" |
| | | android:hint="输入关键字搜索" |
| | | android:padding="9dp" |
| | | android:singleLine="true" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="12sp" |
| | | android:textStyle="bold" |
| | | app:layout_constraintTop_toBottomOf="@id/rv_filter" /> |
| | | android:layout_marginTop="9dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_1" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_search" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginEnd="4dp" |
| | | android:background="@drawable/bg_green_14_alpha" |
| | | android:paddingHorizontal="16dp" |
| | | android:paddingVertical="5dp" |
| | | android:text="搜索" |
| | | android:textColor="@color/colorPrimary" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_1" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | android:id="@+id/tv_empty" |
| | | android:text="你还没有购买课程" |
| | | android:textSize="12sp" |
| | | android:layout_marginTop="30dp" |
| | | android:textColor="@color/textColor66" |
| | | android:drawableTop="@mipmap/wu" |
| | | android:drawablePadding="20dp" |
| | | android:gravity="center"/> |
| | | <TextView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="42dp" |
| | | android:id="@+id/tv_action" |
| | | android:layout_marginHorizontal="52dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_empty" |
| | | android:layout_marginTop="25dp" |
| | | android:gravity="center" |
| | | android:text="前往选购课程" |
| | | android:textSize="15sp" |
| | | android:textColor="@color/white" |
| | | android:background="@drawable/bg_green_20dp"/> |
| | | <androidx.constraintlayout.widget.Barrier |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:id="@+id/barrier" |
| | | app:constraint_referenced_ids="tv_action,rv_my" |
| | | app:barrierDirection="bottom"/> |
| | | <TextView |
| | | android:id="@+id/tv_2" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="免费课程" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="15sp" |
| | | android:textStyle="bold" |
| | | app:layout_constraintBaseline_toBaselineOf="@id/et_search" |
| | | app:layout_constraintEnd_toEndOf="@id/et_search" /> |
| | | |
| | | |
| | | |
| | | app:layout_constraintTop_toBottomOf="@id/barrier" |
| | | android:layout_marginTop="50dp" |
| | | app:layout_constraintStart_toStartOf="@id/tv_1" /> |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/rv_course" |
| | | android:id="@+id/rv_free" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | app:layout_constraintTop_toBottomOf="@id/et_search" /> |
| | | android:layout_marginHorizontal="14dp" |
| | | android:layout_marginTop="9dp" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_2" /> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | </androidx.core.widget.NestedScrollView> |
| | | |