|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<RelativeLayout 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="fill_parent">
|
|
|
|
|
<!-- <wificar.RockerView-->
|
|
|
|
|
<!-- android:layout_width="100dp"-->
|
|
|
|
@ -16,30 +17,74 @@
|
|
|
|
|
android:id="@+id/menuIcon"
|
|
|
|
|
android:layout_width="60dp"
|
|
|
|
|
android:layout_height="60dp"
|
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:text="菜单"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/mySurfaceViewVideo" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/droppedMenu"
|
|
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_width="300dp"
|
|
|
|
|
android:layout_height="200dp"
|
|
|
|
|
android:layout_below="@+id/menuIcon"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:animateLayoutChanges="true"/>
|
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/mySurfaceViewVideo"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/menuIcon">
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<wificar.MySurfaceView
|
|
|
|
|
android:id="@+id/mySurfaceViewVideo"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/linearLayout4"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textColor="#ffffff"
|
|
|
|
|
android:textSize="18dp"
|
|
|
|
|
android:text="舵机X轴" />
|
|
|
|
|
<SeekBar
|
|
|
|
|
android:id="@+id/xSeekbar"
|
|
|
|
|
android:progress="50"
|
|
|
|
|
android:layout_width="300dp"
|
|
|
|
|
android:layout_height="30dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/linearLayout4">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="舵机Y轴"
|
|
|
|
|
android:textColor="#ffffff"
|
|
|
|
|
android:textSize="18dp" />
|
|
|
|
|
|
|
|
|
|
<SeekBar
|
|
|
|
|
android:id="@+id/ySeekbar"
|
|
|
|
|
android:layout_width="300dp"
|
|
|
|
|
android:progress="50"
|
|
|
|
|
android:layout_height="30dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/floatingView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/linearLayout2"
|
|
|
|
@ -48,9 +93,9 @@
|
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_marginRight="15dp"
|
|
|
|
|
android:layout_marginBottom="20dp"
|
|
|
|
|
android:gravity="right">
|
|
|
|
|
android:gravity="right"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
@ -75,8 +120,8 @@
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_above="@+id/linearLayout2"
|
|
|
|
|
android:layout_alignEnd="@+id/linearLayout2"
|
|
|
|
|
android:layout_marginTop="278dp"
|
|
|
|
|
android:layout_marginBottom="20dp">
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/linearLayout2"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/mySurfaceViewVideo">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/showLive"
|
|
|
|
@ -110,8 +155,9 @@
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_above="@+id/linearLayout3"
|
|
|
|
|
android:layout_alignEnd="@+id/linearLayout3"
|
|
|
|
|
android:layout_marginBottom="-255dp"
|
|
|
|
|
android:gravity="right">
|
|
|
|
|
android:gravity="right"
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/linearLayout3"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/mySurfaceViewVideo">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
@ -132,32 +178,4 @@
|
|
|
|
|
android:textSize="20dp" />
|
|
|
|
|
|
|
|
|
|
</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" />-->
|
|
|
|
|
|
|
|
|
|
<!-- <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>
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|