commit
de756573ba
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 4.3 KiB |
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
>
|
||||
<corners
|
||||
android:radius="100dp"
|
||||
/>
|
||||
<solid
|
||||
android:color="#B200FF35"
|
||||
/>
|
||||
<size
|
||||
android:width="100dp"
|
||||
android:height="100dp"
|
||||
/>
|
||||
</shape>
|
@ -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_height="wrap_content"
|
||||
android:text="2001" />
|
||||
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" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_go"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="启动" />
|
||||
<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" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_set"
|
||||
android:layout_width="fill_parent"
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="设置" />
|
||||
android:layout_gravity="bottom"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/button_go"
|
||||
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>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/button_set"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
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>
|
||||
|
||||
|
@ -1,112 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
>
|
||||
<!-- <wificar.RockerView-->
|
||||
<!-- android:layout_width="100dp"-->
|
||||
<!-- android:layout_height="100dp"-->
|
||||
<!-- android:layout_marginStart="200dp"-->
|
||||
<!-- android:layout_marginTop="200dp"-->
|
||||
<!-- android:layout_marginEnd="200dp"-->
|
||||
<!-- android:layout_marginBottom="200dp"-->
|
||||
<!-- android:visibility="visible"-->
|
||||
<!-- tools:visibility="visible" />-->
|
||||
android:layout_height="fill_parent">
|
||||
<!-- <wificar.RockerView-->
|
||||
<!-- android:layout_width="100dp"-->
|
||||
<!-- android:layout_height="100dp"-->
|
||||
<!-- android:layout_marginStart="200dp"-->
|
||||
<!-- android:layout_marginTop="200dp"-->
|
||||
<!-- android:layout_marginEnd="200dp"-->
|
||||
<!-- android:layout_marginBottom="200dp"-->
|
||||
<!-- android:visibility="visible"-->
|
||||
<!-- tools:visibility="visible" />-->
|
||||
|
||||
<wificar.MySurfaceView
|
||||
android:id="@+id/mySurfaceViewVideo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/floatingView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<Button
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/TakePhoto"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_width="66dp"
|
||||
android:layout_height="55dp"
|
||||
android:text="拍照" />
|
||||
android:scaleType="centerCrop"
|
||||
android:layout_marginStart="20dp"
|
||||
android:src="@drawable/snapshot" />
|
||||
|
||||
<Button
|
||||
android:layout_toRightOf="@+id/TakePhoto"
|
||||
<ImageButton
|
||||
android:id="@+id/ViewPhoto"
|
||||
android:layout_width="66dp"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/TakePhoto"
|
||||
android:layout_x="90dp"
|
||||
android:text="查看" />
|
||||
|
||||
<Button
|
||||
android:layout_below="@+id/TakePhoto"
|
||||
android:id="@+id/button_forward"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/button_left"
|
||||
android:layout_width="100dip"
|
||||
android:text="前"
|
||||
/>
|
||||
android:layout_marginStart="20dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/look" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_backward"
|
||||
android:layout_width="100dip"
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/button_forward"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_toRightOf="@+id/button_left"
|
||||
android:text="后" />
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:gravity="right"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
>
|
||||
|
||||
<Button
|
||||
android:layout_below="@+id/button_forward"
|
||||
android:id="@+id/button_left"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="100dip"
|
||||
android:text="左"
|
||||
/>
|
||||
|
||||
<Button
|
||||
|
||||
android:id="@+id/button_right"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toRightOf="@+id/button_backward"
|
||||
android:layout_below="@+id/button_forward"
|
||||
android:layout_width="100dip"
|
||||
android:text="右"
|
||||
/>
|
||||
|
||||
<Button
|
||||
|
||||
android:id="@+id/button_stop"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="100dip"
|
||||
android:layout_toRightOf="@+id/button_right"
|
||||
android:text="停" />
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="25dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:text="关节特征识别 启用"
|
||||
android:textSize="18dp"
|
||||
android:textColor="@android:color/white"
|
||||
android:textStyle="bold"/>
|
||||
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_alignParentStart="true"-->
|
||||
<!-- android:layout_alignParentTop="true"-->
|
||||
<!-- android:layout_marginStart="40dp"-->
|
||||
<!-- android:layout_marginLeft="40dp"-->
|
||||
<!-- android:layout_marginTop="260dp"-->
|
||||
<!-- android:src="@drawable/rocket_circle1" />-->
|
||||
<ImageView
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="25dp"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/circle" />
|
||||
</LinearLayout>
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_alignParentStart="true"-->
|
||||
<!-- android:layout_alignParentTop="true"-->
|
||||
<!-- android:layout_marginStart="40dp"-->
|
||||
<!-- android:layout_marginLeft="40dp"-->
|
||||
<!-- android:layout_marginTop="260dp"-->
|
||||
<!-- android:src="@drawable/rocket_circle1" />-->
|
||||
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_alignParentStart="true"-->
|
||||
<!-- android:layout_alignParentTop="true"-->
|
||||
<!-- android:layout_marginStart="65dp"-->
|
||||
<!-- android:layout_marginLeft="65dp"-->
|
||||
<!-- android:layout_marginTop="285dp"-->
|
||||
<!-- android:src="@drawable/rocket_circle2" />-->
|
||||
<!-- <ImageView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_alignParentStart="true"-->
|
||||
<!-- android:layout_alignParentTop="true"-->
|
||||
<!-- android:layout_marginStart="65dp"-->
|
||||
<!-- android:layout_marginLeft="65dp"-->
|
||||
<!-- android:layout_marginTop="285dp"-->
|
||||
<!-- android:src="@drawable/rocket_circle2" />-->
|
||||
|
||||
<!-- <wificar.RockerView-->
|
||||
<!-- android:id="@+id/rockerView"-->
|
||||
<!-- android:layout_width="265dp"-->
|
||||
<!-- android:layout_height="300dp"-->
|
||||
<!-- android:layout_alignParentStart="true"-->
|
||||
<!-- android:layout_alignParentTop="true"-->
|
||||
<!-- android:layout_marginStart="5dp"-->
|
||||
<!-- android:layout_marginTop="167dp" />-->
|
||||
<!-- <wificar.RockerView-->
|
||||
<!-- android:id="@+id/rockerView"-->
|
||||
<!-- android:layout_width="265dp"-->
|
||||
<!-- android:layout_height="300dp"-->
|
||||
<!-- android:layout_alignParentStart="true"-->
|
||||
<!-- android:layout_alignParentTop="true"-->
|
||||
<!-- android:layout_marginStart="5dp"-->
|
||||
<!-- android:layout_marginTop="167dp" />-->
|
||||
</RelativeLayout>
|
Loading…
Reference in new issue