parent
0a62cce27c
commit
77b443e1d5
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 4.3 KiB |
@ -1,45 +1,116 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
<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"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewIP"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="视频地址" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editIP"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="http://192.168.1.1:8080/?action=stream" />
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="http://192.168.1.1:8080/?action=stream"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textViewIP"
|
||||
app:layout_constraintStart_toEndOf="@id/textViewIP"
|
||||
app:layout_constraintTop_toTopOf="@+id/textViewIP"
|
||||
app:layout_constraintWidth_percent="0.6" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center"
|
||||
android:text="控制地址"
|
||||
app:layout_constraintStart_toStartOf="@+id/textViewIP"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textViewIP"
|
||||
app:layout_constraintWidth_percent="0.15" />
|
||||
<EditText
|
||||
android:id="@+id/ip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="192.168.1.1" />
|
||||
app:layout_constraintWidth_percent="0.6"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="192.168.1.1"
|
||||
app:layout_constraintStart_toEndOf="@+id/textViewIP"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editIP" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:gravity="center"
|
||||
android:text="控制端口"
|
||||
app:layout_constraintStart_toStartOf="@+id/textViewIP"
|
||||
app:layout_constraintTop_toBottomOf="@+id/textView2"
|
||||
app:layout_constraintWidth_percent="0.15" />
|
||||
<EditText
|
||||
android:id="@+id/port"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="2001"
|
||||
app:layout_constraintStart_toStartOf="@+id/editIP"
|
||||
app:layout_constraintTop_toBottomOf="@+id/ip"
|
||||
app:layout_constraintWidth_percent="0.6" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewIP"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="90dp"
|
||||
android:layout_marginTop="100dp"
|
||||
android:gravity="center"
|
||||
android:text="视频地址"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintWidth_percent="0.15" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="2001" />
|
||||
android:layout_gravity="bottom"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<Button
|
||||
<LinearLayout
|
||||
android:id="@+id/button_go"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="120dp"
|
||||
android:gravity="center">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:src="@drawable/start" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="启动" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
<LinearLayout
|
||||
android:id="@+id/button_set"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="设置" />
|
||||
android:gravity="center">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:src="@drawable/settings" />
|
||||
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="设置" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
Loading…
Reference in new issue