197 lines
6.7 KiB
XML
197 lines
6.7 KiB
XML
|
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:background="#555f75"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
tools:context=".Main.Setting.Fragment.MotorFragment">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:gravity="bottom"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
<!-- 持续时间控制区域 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_marginLeft="16dp"
|
||
|
|
android:layout_marginRight="16dp"
|
||
|
|
android:layout_gravity="center_horizontal"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:gravity="center_vertical"
|
||
|
|
android:layout_marginBottom="24dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:text="持续时间:"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:layout_width="70dp"
|
||
|
|
android:layout_height="wrap_content"/>
|
||
|
|
|
||
|
|
<!-- 减按钮 -->
|
||
|
|
<TextView
|
||
|
|
android:gravity="center"
|
||
|
|
android:id="@+id/tv_time_minus"
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:text="-"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:textSize="10sp"
|
||
|
|
android:background="@drawable/ff62a7f0_2round_1stroke_bg"/>
|
||
|
|
|
||
|
|
<!-- 滑动条 -->
|
||
|
|
<SeekBar
|
||
|
|
android:id="@+id/seekBar_time"
|
||
|
|
android:layout_width="150dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:max="10"
|
||
|
|
android:progress="0"
|
||
|
|
|
||
|
|
/>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- 加按钮 -->
|
||
|
|
<TextView
|
||
|
|
android:gravity="center"
|
||
|
|
android:id="@+id/tv_time_add"
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:text="+"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:textSize="10sp"
|
||
|
|
android:background="@drawable/ff62a7f0_2round_1stroke_bg"/>
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_time"
|
||
|
|
android:text="0秒"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:gravity="right"
|
||
|
|
android:layout_height="wrap_content"/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- 持续时间控制区域 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_gravity="center_horizontal"
|
||
|
|
android:layout_marginLeft="16dp"
|
||
|
|
android:layout_marginRight="16dp"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="horizontal"
|
||
|
|
android:gravity="center_vertical"
|
||
|
|
android:layout_marginBottom="24dp">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:text="油门量:"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:layout_width="70dp"
|
||
|
|
android:layout_height="wrap_content"/>
|
||
|
|
|
||
|
|
<!-- 减按钮 -->
|
||
|
|
<TextView
|
||
|
|
android:gravity="center"
|
||
|
|
android:id="@+id/tv_power_minus"
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:text="-"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:textSize="10sp"
|
||
|
|
android:background="@drawable/ff62a7f0_2round_1stroke_bg"/>
|
||
|
|
|
||
|
|
<!-- 滑动条 -->
|
||
|
|
<SeekBar
|
||
|
|
android:id="@+id/seekBar_power"
|
||
|
|
android:layout_width="150dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:max="100"
|
||
|
|
android:progress="0"
|
||
|
|
|
||
|
|
/>
|
||
|
|
|
||
|
|
<!-- 加按钮 -->
|
||
|
|
<TextView
|
||
|
|
android:gravity="center"
|
||
|
|
android:id="@+id/tv_power_add"
|
||
|
|
android:layout_width="24dp"
|
||
|
|
android:layout_height="24dp"
|
||
|
|
android:text="+"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:textSize="10sp"
|
||
|
|
android:background="@drawable/ff62a7f0_2round_1stroke_bg"/>
|
||
|
|
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_power"
|
||
|
|
android:text="0%"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:layout_width="40dp"
|
||
|
|
android:gravity="right"
|
||
|
|
android:layout_height="wrap_content"/>
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_all_test1"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:background="@drawable/ff62a7f0_2round_1stroke_bg"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="全部旋转"
|
||
|
|
android:layout_marginBottom="16dp"
|
||
|
|
android:layout_marginLeft="16dp"
|
||
|
|
android:layout_marginRight="16dp"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"/>
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tv_all_test2"
|
||
|
|
android:textColor="#ffffff"
|
||
|
|
android:background="@drawable/ff62a7f0_2round_1stroke_bg"
|
||
|
|
android:padding="5dp"
|
||
|
|
android:gravity="center"
|
||
|
|
android:text="顺序旋转"
|
||
|
|
android:layout_marginBottom="16dp"
|
||
|
|
android:layout_marginLeft="16dp"
|
||
|
|
android:layout_marginRight="16dp"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"/>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<RelativeLayout
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="match_parent">
|
||
|
|
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:layout_alignParentRight="true"
|
||
|
|
android:id="@+id/rv_data"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="match_parent"
|
||
|
|
android:layout_margin="8dp"/>
|
||
|
|
|
||
|
|
|
||
|
|
</RelativeLayout>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<!-- <!– 显示当前时间 –>-->
|
||
|
|
<!-- <TextView-->
|
||
|
|
<!-- android:id="@+id/tv_duration"-->
|
||
|
|
<!-- android:layout_width="wrap_content"-->
|
||
|
|
<!-- android:layout_height="wrap_content"-->
|
||
|
|
<!-- android:layout_gravity="center_horizontal"-->
|
||
|
|
<!-- android:text="0秒"-->
|
||
|
|
<!-- android:textSize="18sp"-->
|
||
|
|
<!-- android:textColor="#303030"/>-->
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</LinearLayout>
|