102 lines
4.5 KiB
XML
102 lines
4.5 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=".activity.homework.UpdateActivity">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="click"
|
|
type="com.handuan.os.activity.homework.UpdateActivity.BtnClick" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="@dimen/dp_260"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:background="@drawable/dialog_background"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="@dimen/dp_16"
|
|
android:layout_height="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:layout_marginEnd="@dimen/dp_8"
|
|
android:adjustViewBounds="true"
|
|
android:onClick="@{click::exit}"
|
|
android:layout_gravity="right"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_close"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/dp_48"
|
|
android:layout_height="@dimen/dp_48"
|
|
android:layout_gravity="center"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_hw_statu_finish" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:text="你确定已经完成作业了吗?"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_10" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/linearLayout3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dp_16"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/positive"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_24"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/update_finish_background"
|
|
android:gravity="center"
|
|
android:onClick="@{click::updateHomework}"
|
|
android:singleLine="true"
|
|
android:text="已完成"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_11"
|
|
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.0" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |