Compare commits
12 Commits
6a1007bc10
...
9795059a5a
Author | SHA1 | Date |
---|---|---|
|
9795059a5a | 1 year ago |
|
887243015b | 1 year ago |
|
3f70aa065a | 1 year ago |
|
bab0ee05e7 | 1 year ago |
|
77b443e1d5 | 1 year ago |
|
0a62cce27c | 1 year ago |
|
cc8d9a20ef | 1 year ago |
|
4681a006b8 | 1 year ago |
|
fed2a0ac14 | 1 year ago |
|
908633f868 | 1 year ago |
|
fd848f13e6 | 1 year ago |
|
c5bc14afc4 | 1 year ago |
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"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_height="wrap_content"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
>
|
>
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/textViewIP"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="视频地址" />
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/editIP"
|
android:id="@+id/editIP"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="50dp"
|
||||||
android:text="http://192.168.1.1:8080/?action=stream" />
|
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
|
<EditText
|
||||||
android:id="@+id/ip"
|
android:id="@+id/ip"
|
||||||
android:layout_width="fill_parent"
|
app:layout_constraintWidth_percent="0.6"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:text="192.168.1.1" />
|
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
|
<EditText
|
||||||
android:id="@+id/port"
|
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: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: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:layout_height="wrap_content"
|
||||||
android:text="启动" />
|
android:text="启动" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<Button
|
<LinearLayout
|
||||||
android:id="@+id/button_set"
|
android:id="@+id/button_set"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="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>
|
||||||
|
|
||||||
|
@ -1,112 +1,98 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent">
|
||||||
>
|
<!-- <wificar.RockerView-->
|
||||||
<!-- <wificar.RockerView-->
|
<!-- android:layout_width="100dp"-->
|
||||||
<!-- android:layout_width="100dp"-->
|
<!-- android:layout_height="100dp"-->
|
||||||
<!-- android:layout_height="100dp"-->
|
<!-- android:layout_marginStart="200dp"-->
|
||||||
<!-- android:layout_marginStart="200dp"-->
|
<!-- android:layout_marginTop="200dp"-->
|
||||||
<!-- android:layout_marginTop="200dp"-->
|
<!-- android:layout_marginEnd="200dp"-->
|
||||||
<!-- android:layout_marginEnd="200dp"-->
|
<!-- android:layout_marginBottom="200dp"-->
|
||||||
<!-- android:layout_marginBottom="200dp"-->
|
<!-- android:visibility="visible"-->
|
||||||
<!-- android:visibility="visible"-->
|
<!-- tools:visibility="visible" />-->
|
||||||
<!-- tools:visibility="visible" />-->
|
|
||||||
|
|
||||||
<wificar.MySurfaceView
|
<wificar.MySurfaceView
|
||||||
android:id="@+id/mySurfaceViewVideo"
|
android:id="@+id/mySurfaceViewVideo"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/floatingView"
|
android:id="@+id/floatingView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent" />
|
||||||
|
|
||||||
<Button
|
<ImageButton
|
||||||
android:id="@+id/TakePhoto"
|
android:id="@+id/TakePhoto"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
android:layout_width="66dp"
|
android:layout_width="66dp"
|
||||||
android:layout_height="55dp"
|
android:layout_height="55dp"
|
||||||
android:text="拍照" />
|
android:scaleType="centerCrop"
|
||||||
|
android:layout_marginStart="20dp"
|
||||||
|
android:src="@drawable/snapshot" />
|
||||||
|
|
||||||
<Button
|
<ImageButton
|
||||||
android:layout_toRightOf="@+id/TakePhoto"
|
|
||||||
android:id="@+id/ViewPhoto"
|
android:id="@+id/ViewPhoto"
|
||||||
android:layout_width="66dp"
|
android:layout_width="66dp"
|
||||||
android:layout_height="55dp"
|
android:layout_height="55dp"
|
||||||
|
android:layout_marginTop="5dp"
|
||||||
|
android:layout_toRightOf="@+id/TakePhoto"
|
||||||
android:layout_x="90dp"
|
android:layout_x="90dp"
|
||||||
android:text="查看" />
|
android:layout_marginStart="20dp"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
<Button
|
android:src="@drawable/look" />
|
||||||
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="前"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/button_backward"
|
|
||||||
android:layout_width="100dip"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@+id/button_forward"
|
|
||||||
android:layout_centerInParent="true"
|
|
||||||
android:layout_toRightOf="@+id/button_left"
|
|
||||||
android:text="后" />
|
|
||||||
|
|
||||||
<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"
|
<LinearLayout
|
||||||
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toRightOf="@+id/button_backward"
|
android:layout_alignParentStart="true"
|
||||||
android:layout_below="@+id/button_forward"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_width="100dip"
|
android:gravity="right"
|
||||||
android:text="右"
|
android:layout_marginTop="15dp"
|
||||||
/>
|
android:layout_marginRight="15dp"
|
||||||
|
>
|
||||||
<Button
|
|
||||||
|
|
||||||
android:id="@+id/button_stop"
|
<TextView
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="100dip"
|
android:layout_height="25dp"
|
||||||
android:layout_toRightOf="@+id/button_right"
|
android:layout_marginRight="10dp"
|
||||||
android:text="停" />
|
android:text="关节特征识别 启用"
|
||||||
|
android:textSize="18dp"
|
||||||
|
android:textColor="@android:color/white"
|
||||||
|
android:textStyle="bold"/>
|
||||||
|
|
||||||
<!-- <ImageView-->
|
<ImageView
|
||||||
<!-- android:layout_width="wrap_content"-->
|
android:layout_width="25dp"
|
||||||
<!-- android:layout_height="wrap_content"-->
|
android:layout_height="25dp"
|
||||||
<!-- android:layout_alignParentStart="true"-->
|
android:scaleType="centerCrop"
|
||||||
<!-- android:layout_alignParentTop="true"-->
|
android:src="@drawable/circle" />
|
||||||
<!-- android:layout_marginStart="40dp"-->
|
</LinearLayout>
|
||||||
<!-- android:layout_marginLeft="40dp"-->
|
<!-- <ImageView-->
|
||||||
<!-- android:layout_marginTop="260dp"-->
|
<!-- android:layout_width="wrap_content"-->
|
||||||
<!-- android:src="@drawable/rocket_circle1" />-->
|
<!-- 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-->
|
<!-- <ImageView-->
|
||||||
<!-- android:layout_width="wrap_content"-->
|
<!-- android:layout_width="wrap_content"-->
|
||||||
<!-- android:layout_height="wrap_content"-->
|
<!-- android:layout_height="wrap_content"-->
|
||||||
<!-- android:layout_alignParentStart="true"-->
|
<!-- android:layout_alignParentStart="true"-->
|
||||||
<!-- android:layout_alignParentTop="true"-->
|
<!-- android:layout_alignParentTop="true"-->
|
||||||
<!-- android:layout_marginStart="65dp"-->
|
<!-- android:layout_marginStart="65dp"-->
|
||||||
<!-- android:layout_marginLeft="65dp"-->
|
<!-- android:layout_marginLeft="65dp"-->
|
||||||
<!-- android:layout_marginTop="285dp"-->
|
<!-- android:layout_marginTop="285dp"-->
|
||||||
<!-- android:src="@drawable/rocket_circle2" />-->
|
<!-- android:src="@drawable/rocket_circle2" />-->
|
||||||
|
|
||||||
<!-- <wificar.RockerView-->
|
<!-- <wificar.RockerView-->
|
||||||
<!-- android:id="@+id/rockerView"-->
|
<!-- android:id="@+id/rockerView"-->
|
||||||
<!-- android:layout_width="265dp"-->
|
<!-- android:layout_width="265dp"-->
|
||||||
<!-- android:layout_height="300dp"-->
|
<!-- android:layout_height="300dp"-->
|
||||||
<!-- android:layout_alignParentStart="true"-->
|
<!-- android:layout_alignParentStart="true"-->
|
||||||
<!-- android:layout_alignParentTop="true"-->
|
<!-- android:layout_alignParentTop="true"-->
|
||||||
<!-- android:layout_marginStart="5dp"-->
|
<!-- android:layout_marginStart="5dp"-->
|
||||||
<!-- android:layout_marginTop="167dp" />-->
|
<!-- android:layout_marginTop="167dp" />-->
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
Loading…
Reference in new issue