177 lines
9.4 KiB
XML
177 lines
9.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:context=".fragment.precision.PrecisionFragment">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="click"
|
|
type="com.uiui.zyos.fragment.precision.PrecisionFragment.BtnClick" />
|
|
</data>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_bias="0.35">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout3"
|
|
android:layout_width="@dimen/dp_287"
|
|
android:layout_height="@dimen/dp_168"
|
|
android:background="@drawable/precision_box"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="@dimen/dp_52"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_15"
|
|
android:background="@drawable/grade_bg"
|
|
android:onClick="@{click::showWindow}"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_grade"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="小学"
|
|
android:textColor="#dcf2ff"
|
|
android:textSize="@dimen/sp_9"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/dp_8"
|
|
android:layout_height="@dimen/dp_8"
|
|
android:layout_marginStart="@dimen/dp_4"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_pull"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/tv_grade"
|
|
app:layout_constraintTop_toTopOf="@+id/tv_grade" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="人教版"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_8"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/textView2"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/textView2" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_6"
|
|
android:maxLines="1"
|
|
android:text="AI精准学"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_12"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_bunk"
|
|
android:layout_width="@dimen/dp_128"
|
|
android:layout_height="@dimen/dp_130"
|
|
android:onClick="@{click::openPrecisionHome}"
|
|
android:src="@drawable/precision_question_bank"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_paper"
|
|
android:layout_width="@dimen/dp_128"
|
|
android:layout_height="@dimen/dp_61"
|
|
android:layout_marginStart="@dimen/dp_9"
|
|
android:adjustViewBounds="true"
|
|
android:onClick="@{click::openPrecisionTestPaper}"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/precision_test_paper"
|
|
app:layout_constraintStart_toEndOf="@+id/iv_bunk"
|
|
app:layout_constraintTop_toTopOf="@+id/iv_bunk" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_test"
|
|
android:layout_width="@dimen/dp_128"
|
|
android:layout_height="@dimen/dp_61"
|
|
android:adjustViewBounds="true"
|
|
android:onClick="@{click::openPrecisionSpecial}"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/precision_stage_test"
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_bunk"
|
|
app:layout_constraintStart_toStartOf="@+id/iv_paper" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_book"
|
|
android:layout_width="@dimen/dp_112"
|
|
android:layout_height="@dimen/dp_80"
|
|
android:layout_marginStart="@dimen/dp_10"
|
|
android:adjustViewBounds="true"
|
|
android:onClick="@{click::openPrecisionQuestionBook}"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/precision_wrong_book"
|
|
app:layout_constraintStart_toEndOf="@+id/constraintLayout3"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_favorites"
|
|
android:layout_width="@dimen/dp_112"
|
|
android:layout_height="@dimen/dp_80"
|
|
android:adjustViewBounds="true"
|
|
android:onClick="@{click::openPrecisionFavorites}"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/precision_favorites"
|
|
app:layout_constraintBottom_toBottomOf="@+id/constraintLayout3"
|
|
app:layout_constraintStart_toStartOf="@+id/iv_book" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</FrameLayout>
|
|
</layout> |