<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
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:background="@color/black_trans">
<RelativeLayout
android:id="@+id/dialog_edit_cancel"
android:layout_width="30dp"
android:layout_height="30dp"
app:layout_constraintRight_toRightOf="@+id/dialog_edit_body"
app:layout_constraintBottom_toTopOf="@+id/dialog_edit_body">
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@mipmap/icon_close" />
</RelativeLayout>
<LinearLayout
android:id="@+id/dialog_edit_body"
android:layout_width="308dp"
android:layout_height="180dp"
android:orientation="vertical"
android:background="@drawable/bg_login"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintBottom_toBottomOf="parent">
<EditText
android:id="@+id/dialog_edit_edit"
android:layout_marginTop="30dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="http://192.168.31.101:8080"/>
<Button
android:id="@+id/dialog_edit_btn"
android:layout_width="278dp"
android:layout_height="45dp"
android:layout_gravity="center_horizontal"
android:background="@drawable/bg_login_btn"
android:text="确定更改IP"
android:textColor="@color/app_color_white"
android:textSize="18sp"
android:layout_marginTop="45.5dp"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
|