| | |
| | | <androidx.constraintlayout.widget.ConstraintLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content"> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_1" |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="19dp" |
| | | android:layout_marginTop="9dp" |
| | | android:fontFamily="@font/sourcehansanscn_regular" |
| | | android:text="新手冥想指南" |
| | | android:textColor="@color/textColor" |
| | | android:textSize="21sp" |
| | | app:layout_constraintStart_toStartOf="parent" |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="3dp" |
| | | android:text="Meditation guide" |
| | | android:textSize="8sp" |
| | | app:layout_constraintBottom_toBottomOf="@id/tv_1" |
| | | app:layout_constraintStart_toStartOf="@id/tv_1" /> |
| | | |
| | | <com.youth.banner.Banner |
| | | android:id="@+id/banner" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="0dp" |
| | | android:layout_marginTop="6dp" |
| | | android:layout_marginTop="16dp" |
| | | android:src="@mipmap/bg_guide" |
| | | app:layout_constraintDimensionRatio="390:205" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_1" /> |
| | | |
| | | app:layout_constraintTop_toTopOf="parent" /> |
| | | <View |
| | | android:layout_width="match_parent" |
| | | android:layout_height="10dp" |
| | | android:background="@color/page_bg" |
| | | app:layout_constraintTop_toBottomOf="@id/banner" /> |
| | | |
| | | <androidx.recyclerview.widget.RecyclerView |
| | | android:id="@+id/rv_menu" |
| | | android:layout_width="match_parent" |
| | |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical" |
| | | app:layout_constraintTop_toBottomOf="@id/rv_menu" |
| | | android:paddingBottom="20dp" |
| | | android:background="@color/page_bg"> |
| | | <TextView |
| | | android:id="@+id/tv_2" |
| | |
| | | android:id="@+id/rv_course" |
| | | app:layout_constraintTop_toBottomOf="@id/tv_2" |
| | | android:layout_marginTop="10dp" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | android:layout_marginBottom="50dp" |
| | | android:layout_marginHorizontal="12dp"/> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |