<?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:focusable="true"
|
android:focusableInTouchMode="true"
|
android:orientation="vertical">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<EditText
|
android:id="@+id/ev_value"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:minWidth="100dp"
|
android:text="40" />
|
|
<Button
|
android:id="@+id/btn_set_TH"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设置灵敏度" />
|
|
<Button
|
android:id="@+id/btn_get_TH"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="30dp"
|
android:text="读取灵敏度" />
|
|
<TextView
|
android:id="@+id/tv_TH_value"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="10dp"
|
android:visibility="gone" />
|
|
<CheckBox
|
android:id="@+id/cbox_gpio_hled"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:checked="true"
|
android:text="GPIO高电平亮灯" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<EditText
|
android:id="@+id/ev_dl_value"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:maxLines="1"
|
android:minWidth="100dp"
|
android:text="2" />
|
|
<Button
|
android:id="@+id/btn_set_DL"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="设置电平宽度" />
|
|
<Button
|
android:id="@+id/btn_get_DL"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginLeft="30dp"
|
android:text="读取电平宽度" />
|
|
</LinearLayout>
|
|
|
<TextView
|
android:id="@+id/tv_set_result_txt"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:minHeight="50dp" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center_vertical"
|
android:layout_marginTop="20dp"
|
android:orientation="horizontal">
|
|
<Button
|
android:id="@+id/btn_clear"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="清空" />
|
|
<SeekBar
|
android:id="@+id/seekbar"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_margin="10dp"
|
android:layout_weight="1"
|
android:max="200"
|
android:progress="30" />
|
|
<TextView
|
android:id="@+id/tv_seekbar_progress"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:textSize="15sp" />
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/tv_dis_txt"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:textColor="@color/colorAccent"
|
android:textSize="30sp" />
|
|
</LinearLayout>
|