|
@@ -1,31 +1,53 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/pb_connecting"
|
|
|
- android:layout_width="320dp"
|
|
|
- android:layout_height="400dp"
|
|
|
- android:paddingLeft="140dp"
|
|
|
- android:paddingTop="180dp"
|
|
|
- android:paddingRight="140dp"
|
|
|
- android:paddingBottom="180dp"
|
|
|
- android:src="@android:drawable/stat_notify_error"
|
|
|
- android:background="@android:color/holo_red_dark"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_connecting"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="连接失败"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/pb_connecting" />
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginVertical="8dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="配置失败"
|
|
|
+ android:textFontWeight="600"
|
|
|
+ android:textSize="14pt" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="240dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_gravity="center"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:scaleType="fitCenter"
|
|
|
+ android:src="@mipmap/failure" />
|
|
|
|
|
|
-</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:lineHeight="18dp"
|
|
|
+ android:paddingHorizontal="20dp"
|
|
|
+ android:text="可能的原因:\n1. 配置的WIFI网络不存在\n2. 配置的WIFI密码有错误\n3. 选择配置网络的设备有误\n"
|
|
|
+ android:textSize="14dp" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="64dp" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_intro_request"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="16dp"
|
|
|
+ android:text="重新设置" />
|
|
|
+</LinearLayout>
|