136 lines
6.4 KiB
XML
136 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".activity.main.MainActivity">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraintLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:background="@color/colorAccent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_back"
|
|
android:layout_width="@dimen/dp_20"
|
|
android:layout_height="@dimen/dp_16"
|
|
android:layout_marginStart="@dimen/dp_4"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/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:text="家庭空间"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/sp_15"
|
|
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="match_parent"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/constraintLayout">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/cl_pic"
|
|
android:layout_width="@dimen/dp_128"
|
|
android:layout_height="@dimen/dp_128"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
android:background="@drawable/bg_dialog"
|
|
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_8"
|
|
android:text="相册"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_10"
|
|
app:layout_constraintBottom_toTopOf="@+id/nv_pic"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/nv_pic"
|
|
android:layout_width="@dimen/dp_80"
|
|
android:layout_height="@dimen/dp_80"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_pic"
|
|
app:corner_radius="@dimen/dp_4"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/vl_video"
|
|
android:layout_width="@dimen/dp_128"
|
|
android:layout_height="@dimen/dp_128"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:background="@drawable/bg_dialog"
|
|
app:layout_constraintStart_toEndOf="@+id/cl_pic"
|
|
app:layout_constraintTop_toTopOf="@+id/cl_pic">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_8"
|
|
android:text="视频"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/sp_10"
|
|
app:layout_constraintBottom_toTopOf="@+id/nv_video"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/nv_video"
|
|
android:layout_width="@dimen/dp_80"
|
|
android:layout_height="@dimen/dp_80"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/icon_video"
|
|
app:corner_radius="@dimen/dp_4"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:layout_width="@dimen/dp_32"
|
|
android:layout_height="@dimen/dp_32"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/play"
|
|
app:layout_constraintBottom_toBottomOf="@+id/nv_video"
|
|
app:layout_constraintEnd_toEndOf="@+id/nv_video"
|
|
app:layout_constraintStart_toStartOf="@+id/nv_video"
|
|
app:layout_constraintTop_toTopOf="@+id/nv_video" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |