473 lines
17 KiB
XML
473 lines
17 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:orientation="vertical"
|
|
android:padding="6dp"
|
|
android:background="#101010"
|
|
tools:context=".Main.Setting.Fragment.SecureFragment">
|
|
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<View
|
|
android:layout_centerVertical="true"
|
|
android:background="@drawable/ffffffff_4round_bg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1.5dp"/>
|
|
|
|
<TextView
|
|
android:background="#101010"
|
|
android:gravity="center"
|
|
android:layout_centerInParent="true"
|
|
android:layout_margin="6dp"
|
|
android:textStyle="bold"
|
|
android:textColor="#ffffff"
|
|
android:textSize="14sp"
|
|
android:text="电池"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:padding="12dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- 一级电压 -->
|
|
<LinearLayout
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
>
|
|
|
|
<TextView
|
|
android:gravity="right"
|
|
android:textSize="10sp"
|
|
android:text="一级低电压:"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<!-- 减按钮 -->
|
|
<TextView
|
|
android:layout_marginLeft="30dp"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_one_power_minus"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:text="-"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"/>
|
|
|
|
<!-- 滑动条 -->
|
|
<SeekBar
|
|
android:layout_marginLeft="3dp"
|
|
android:layout_marginRight="3dp"
|
|
android:id="@+id/seekBar_one_power"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:max="100"
|
|
android:progress="40"
|
|
|
|
/>
|
|
|
|
<!-- 加按钮 -->
|
|
<TextView
|
|
android:gravity="center"
|
|
android:id="@+id/tv_one_power_add"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:text="+"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"/>
|
|
|
|
|
|
<TextView
|
|
android:textSize="10sp"
|
|
android:id="@+id/tv_one_power"
|
|
android:text="20.0v"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="40dp"
|
|
android:gravity="right"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:gravity="center_vertical"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:gravity="right"
|
|
android:textSize="10sp"
|
|
android:text="保护动作:"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_marginLeft="55dp"
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_one_power_protect"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"
|
|
android:id="@+id/tv_one_power_protect"
|
|
android:gravity="center"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:text="返航"
|
|
android:layout_width="80dp"
|
|
android:padding="5dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<ImageView
|
|
android:layout_marginRight="5dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentRight="true"
|
|
android:src="@mipmap/icon_spinner_dowm"
|
|
android:layout_width="10dp"
|
|
android:layout_height="10dp"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<Spinner
|
|
android:layout_below="@+id/rl_one_power_protect"
|
|
android:id="@+id/sp_one_power_protect"
|
|
android:layout_width="80dp"
|
|
android:layout_height="0dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 二级电压 -->
|
|
<LinearLayout
|
|
android:layout_marginTop="20dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
>
|
|
|
|
<TextView
|
|
android:gravity="right"
|
|
android:textSize="10sp"
|
|
android:text="二级低电压:"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<!-- 减按钮 -->
|
|
<TextView
|
|
android:layout_marginLeft="30dp"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_two_power_minus"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:text="-"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"/>
|
|
|
|
<!-- 滑动条 -->
|
|
<SeekBar
|
|
android:layout_marginLeft="3dp"
|
|
android:layout_marginRight="3dp"
|
|
android:id="@+id/seekBar_two_power"
|
|
android:layout_width="150dp"
|
|
android:layout_height="wrap_content"
|
|
android:max="100"
|
|
android:progress="20"
|
|
/>
|
|
|
|
<!-- 加按钮 -->
|
|
<TextView
|
|
android:gravity="center"
|
|
android:id="@+id/tv_two_power_add"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:text="+"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"/>
|
|
|
|
|
|
<TextView
|
|
android:textSize="10sp"
|
|
android:id="@+id/tv_two_power"
|
|
android:text="10.0v"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="40dp"
|
|
android:gravity="right"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="12dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:gravity="right"
|
|
android:textSize="10sp"
|
|
android:text="保护动作:"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
android:layout_marginLeft="55dp"
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_two_power_protect"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_two_power_protect"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"
|
|
android:gravity="center"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:text="返航"
|
|
android:layout_width="80dp"
|
|
android:padding="5dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<ImageView
|
|
android:layout_marginRight="5dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentRight="true"
|
|
android:src="@mipmap/icon_spinner_dowm"
|
|
android:layout_width="10dp"
|
|
android:layout_height="10dp"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<Spinner
|
|
android:id="@+id/sp_two_power_protect"
|
|
android:layout_below="@+id/rl_two_power_protect"
|
|
android:layout_width="80dp"
|
|
android:layout_height="0dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<View
|
|
android:layout_centerVertical="true"
|
|
android:background="@drawable/ffffffff_4round_bg"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1.5dp"/>
|
|
|
|
<TextView
|
|
android:background="#101010"
|
|
android:gravity="center"
|
|
android:layout_centerInParent="true"
|
|
android:layout_margin="6dp"
|
|
android:textStyle="bold"
|
|
android:textColor="#ffffff"
|
|
android:textSize="14sp"
|
|
android:text="链路保护"
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</RelativeLayout>
|
|
<LinearLayout
|
|
android:padding="12dp"
|
|
android:layout_marginTop="6dp"
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- 一级电压 -->
|
|
<LinearLayout
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
>
|
|
|
|
<TextView
|
|
android:gravity="right"
|
|
android:textSize="10sp"
|
|
android:text="通讯超时:"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<!-- 减按钮 -->
|
|
<TextView
|
|
android:layout_marginLeft="30dp"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_link_minus"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:text="-"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"/>
|
|
|
|
<EditText
|
|
android:id="@+id/et_link"
|
|
android:inputType="number"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:text="10"
|
|
android:textColor="#909090"
|
|
android:textSize="10sp"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:background="@drawable/ffffffff_4round_bg"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<!-- 加按钮 -->
|
|
<TextView
|
|
android:gravity="center"
|
|
android:id="@+id/tv_link_add"
|
|
android:layout_width="22dp"
|
|
android:layout_height="22dp"
|
|
android:text="+"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"/>
|
|
|
|
|
|
<TextView
|
|
android:textSize="10sp"
|
|
android:id="@+id/tv_link"
|
|
android:text="秒"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="40dp"
|
|
android:gravity="right"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_marginTop="12dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:gravity="right"
|
|
android:textSize="10sp"
|
|
android:text="保护动作:"
|
|
android:textColor="#ffffff"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<RelativeLayout
|
|
android:layout_marginLeft="55dp"
|
|
android:layout_width="80dp"
|
|
android:layout_height="wrap_content">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_link_protect"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_link_protect"
|
|
android:background="@drawable/ff029a45_2round_1stroke_bg"
|
|
android:gravity="center"
|
|
android:textColor="#ffffff"
|
|
android:textSize="10sp"
|
|
android:text="返航"
|
|
android:layout_width="80dp"
|
|
android:padding="5dp"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<ImageView
|
|
android:layout_marginRight="5dp"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentRight="true"
|
|
android:src="@mipmap/icon_spinner_dowm"
|
|
android:layout_width="10dp"
|
|
android:layout_height="10dp"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
|
<Spinner
|
|
android:id="@+id/sp_link_protect"
|
|
android:layout_below="@+id/rl_link_protect"
|
|
android:layout_width="80dp"
|
|
android:layout_height="0dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|