parent
d8b63e6afb
commit
71324ec7f8
After Width: | Height: | Size: 4.0 KiB |
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- 设置透明背景色 -->
|
||||
<solid android:color="#80000000" />
|
||||
|
||||
<!-- 设置一个黑色边框 -->
|
||||
<stroke
|
||||
android:width="2px"
|
||||
android:color="#000000" />
|
||||
<!-- 设置四个圆角的半径 -->
|
||||
<corners
|
||||
android:bottomLeftRadius="10px"
|
||||
android:bottomRightRadius="10px"
|
||||
android:topLeftRadius="10px"
|
||||
android:topRightRadius="10px" />
|
||||
<!-- 设置一下边距,让空间大一点 -->
|
||||
<padding
|
||||
android:bottom="5dp"
|
||||
android:left="5dp"
|
||||
android:right="5dp"
|
||||
android:top="5dp" />
|
||||
|
||||
</shape>
|
@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#80000000" />
|
||||
|
||||
<!-- 这里是其他控件 -->
|
||||
<LinearLayout
|
||||
android:layout_width="414dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="right"
|
||||
android:background="#80FFFFFF"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
<ImageButton
|
||||
android:id="@+id/returns"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="70dp"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="#00000000"
|
||||
android:scaleType="centerInside"
|
||||
app:srcCompat="@drawable/returns" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/Battery_warning"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:text="电量预警"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp"
|
||||
android:background="@drawable/txt_radiuborder"/>
|
||||
|
||||
<Switch
|
||||
android:id="@+id/photo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="图像高画质"
|
||||
android:textSize="28dp"
|
||||
android:textColor="@color/white"
|
||||
android:background="@drawable/txt_radiuborder"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/txt_radiuborder">
|
||||
|
||||
<TextView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="飞行速度"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="28dp" />
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/speed"
|
||||
android:layout_width="180dp"
|
||||
android:layout_height="50dp"
|
||||
android:max="90"
|
||||
android:progress="0"
|
||||
android:thumbTint='@color/teal_200' />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvProgress"
|
||||
android:layout_width="77dp"
|
||||
android:layout_height="30dp"
|
||||
android:text="10"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
Loading…
Reference in new issue