68 lines
2.6 KiB
XML
68 lines
2.6 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.AboutActivity">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="title"
|
|
type="String" />
|
|
|
|
<variable
|
|
name="image"
|
|
type="Integer" />
|
|
</data>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/white">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout9"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_back"
|
|
android:layout_width="@dimen/dp_16"
|
|
android:layout_height="@dimen/dp_16"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_16"
|
|
android:layout_marginBottom="@dimen/dp_16"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_black_back"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_12"
|
|
android:text="@{title}"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_13"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="@+id/iv_back"
|
|
app:layout_constraintStart_toEndOf="@+id/iv_back"
|
|
app:layout_constraintTop_toTopOf="@+id/iv_back"
|
|
tools:text="标题" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
app:imageUrl="@{image}"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout9" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout> |