|
@@ -0,0 +1,113 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<LinearLayout 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="wrap_content"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_marginStart="@dimen/dp_32"
|
|
|
+ android:layout_marginEnd="@dimen/dp_32"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/bg_white_20dp"
|
|
|
+ android:paddingBottom="20dp">
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_title_bg"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="49dp"
|
|
|
+ android:background="@drawable/shape_defaff_to_white_20dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:paddingTop="20dp"
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
+ android:textSize="@dimen/sp_18"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="我是标题" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_content"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
+ android:gravity="left"
|
|
|
+ android:paddingTop="20dp"
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:lineSpacingMultiplier="1.2"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_copy"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ android:maxLines="2"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
|
|
+ tools:text="文件已保存到以下地址 C:/文件/dei/dei/dei/dei/dei/dei/dei/dei" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_copy"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="?attr/klx_main_color"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:text="复制"
|
|
|
+ android:paddingStart="5dp"
|
|
|
+ android:paddingEnd="25dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_content"
|
|
|
+ app:layout_constraintRight_toRightOf="parent" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:id="@+id/tv_cancel"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginStart="20dp"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:background="@drawable/shape_border_dbdbdb_1dp_22dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="取消"
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_confirm"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_content" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_confirm"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="40dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
+ android:background="@drawable/shape_2dc7aa_22dp_dynamic"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="打开文件"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_cancel"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_cancel" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_close"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:src="@drawable/icon_close_black"
|
|
|
+ android:layout_width="18dp"
|
|
|
+ android:layout_height="18dp"/>
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+</LinearLayout>
|