|
@@ -1,22 +1,28 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<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"
|
|
|
android:background="@color/white">
|
|
|
|
|
|
<View
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="@dimen/dp_304"
|
|
|
android:background="@drawable/bg_guide_top" />
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
android:id="@+id/ll_points"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_alignParentBottom="true"
|
|
|
android:layout_centerHorizontal="true"
|
|
|
- android:layout_marginBottom="@dimen/dp_97"
|
|
|
+ android:layout_marginBottom="@dimen/qb_px_67"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<View
|
|
@@ -44,24 +50,34 @@
|
|
|
android:layout_height="@dimen/dp_40"
|
|
|
android:layout_above="@+id/ll_points"
|
|
|
android:layout_centerHorizontal="true"
|
|
|
- android:layout_marginBottom="46dp"
|
|
|
+ android:layout_marginTop="46dp"
|
|
|
android:background="@drawable/shape_course_status_ing"
|
|
|
android:gravity="center"
|
|
|
android:text="立即体验"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_content"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="@dimen/sp_18" />
|
|
|
|
|
|
<TextView
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/ll_points"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
|
|
android:id="@+id/tv_content"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_above="@+id/ll_points"
|
|
|
android:layout_centerHorizontal="true"
|
|
|
- android:layout_marginBottom="@dimen/dp_112"
|
|
|
android:text="展示个人风采,传播专业知识"
|
|
|
android:textColor="@color/color_9e9e9e" />
|
|
|
|
|
|
<TextView
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_content"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/im_center"
|
|
|
android:id="@+id/tv_title"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
@@ -74,15 +90,20 @@
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
<ImageView
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tv_title"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintWidth_percent="0.7"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:id="@+id/im_center"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/dp_330"
|
|
|
+ android:adjustViewBounds="true"
|
|
|
android:layout_above="@+id/tv_title"
|
|
|
android:layout_marginLeft="14dp"
|
|
|
- android:layout_marginTop="174dp"
|
|
|
android:layout_marginRight="14dp"
|
|
|
android:layout_marginBottom="24dp"
|
|
|
android:src="@drawable/icon_guid_center_3" />
|
|
|
|
|
|
-
|
|
|
-</RelativeLayout>
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|