| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459 |
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
-
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- >
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:orientation="vertical"
- >
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
-
- <Button
- android:id="@+id/button_connect"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="连接"
- />
-
-
- <Button
- android:id="@+id/button_dis"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="断开"
- tools:layout_editor_absoluteX="281dp"
- tools:layout_editor_absoluteY="40dp"/>
-
- <Button
- android:id="@+id/button_clear"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="清空"
- tools:layout_editor_absoluteX="281dp"
- tools:layout_editor_absoluteY="120dp"/>
-
- <Button
- android:id="@+id/button_ota"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="OTA"
- tools:layout_editor_absoluteX="281dp"
- tools:layout_editor_absoluteY="120dp"/>
-
- </LinearLayout>
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
-
- <Button
- android:id="@+id/button_time"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="同步时间"
- />
-
-
- <Button
- android:id="@+id/button_status"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="获取状态"
- tools:layout_editor_absoluteX="281dp"
- tools:layout_editor_absoluteY="40dp"/>
-
- <Button
- android:id="@+id/button_info"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="获取参数"
- tools:layout_editor_absoluteX="281dp"
- tools:layout_editor_absoluteY="40dp"/>
-
- <Button
- android:id="@+id/button_log"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读取记录"
- tools:layout_editor_absoluteX="16dp"
- tools:layout_editor_absoluteY="120dp"/>
-
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
-
- <Button
- android:id="@+id/button_close"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="关机"
- tools:layout_editor_absoluteX="148dp"
- tools:layout_editor_absoluteY="120dp"/>
-
- <Button
- android:id="@+id/button_activation"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="激活设备"
- tools:layout_editor_absoluteX="148dp"
- tools:layout_editor_absoluteY="120dp"/>
-
- <Button
- android:id="@+id/button_close_activation"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="清除激活状态"
- tools:layout_editor_absoluteX="148dp"
- tools:layout_editor_absoluteY="120dp"/>
-
- <Button
- android:id="@+id/button_bind"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="绑定"
- tools:layout_editor_absoluteX="148dp"
- tools:layout_editor_absoluteY="120dp"/>
-
-
- </LinearLayout>
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <Button
- android:id="@+id/button_reboot"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="重启"
- tools:layout_editor_absoluteX="148dp"
- tools:layout_editor_absoluteY="120dp"/>
-
- <Button
- android:id="@+id/button_version"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="版本号"
- tools:layout_editor_absoluteX="148dp"
- tools:layout_editor_absoluteY="120dp"/>
-
-
- <TextView
- android:id="@+id/tv_version"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="bm"
- />
-
- </LinearLayout>
-
-
-
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <EditText
- android:id="@+id/et_set_user"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:digits="0123456789"
- android:hint="userId"
- android:text="1"
- />
-
- <EditText
- android:id="@+id/et_set_user_status"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:digits="0123456789"
- android:hint="status"
- android:maxLength="1"
- android:text="0"
- />
-
- <Button
- android:id="@+id/button_user"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="下发用户"
- tools:layout_editor_absoluteX="148dp"
- tools:layout_editor_absoluteY="41dp"/>
-
-
- </LinearLayout>
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
-
- <TextView
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text="靠近报警阀值:"
- />
-
- <com.pinwang.ailinkblesdk.view.SeekBarMin
- android:id="@+id/seekBar1"
- style="@style/Widget.AppCompat.SeekBar"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
-
- <TextView
- android:id="@+id/text1"
- android:layout_width="50dp"
- android:layout_height="wrap_content"
- android:text="阀值"
- />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
-
- <TextView
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text="接收的阀值次数:"
- />
-
- <com.pinwang.ailinkblesdk.view.SeekBarMin
- android:id="@+id/seekBar2"
- style="@style/Widget.AppCompat.SeekBar"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
-
- <TextView
- android:id="@+id/text2"
- android:layout_width="50dp"
- android:layout_height="wrap_content"
- android:text="阀值"
- />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
-
- <TextView
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text="脱离报警时间:"
- />
-
- <com.pinwang.ailinkblesdk.view.SeekBarMin
- android:id="@+id/seekBar3"
- style="@style/Widget.AppCompat.SeekBar"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
-
- <TextView
- android:id="@+id/text3"
- android:layout_width="50dp"
- android:layout_height="wrap_content"
- android:text="阀值"
- />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
-
- <TextView
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text="脱离报警次数:"
- />
-
- <com.pinwang.ailinkblesdk.view.SeekBarMin
- android:id="@+id/seekBar4"
- style="@style/Widget.AppCompat.SeekBar"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"/>
-
- <TextView
- android:id="@+id/text4"
- android:layout_width="50dp"
- android:layout_height="wrap_content"
- android:text="阀值"
- />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
-
- <TextView
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text="Gsensor灵敏度:"
- />
-
- <com.pinwang.ailinkblesdk.view.SeekBarMin
- android:id="@+id/seekBar5"
- style="@style/Widget.AppCompat.SeekBar"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
-
- <TextView
- android:id="@+id/text5"
- android:layout_width="50dp"
- android:layout_height="wrap_content"
- android:text="阀值"
- />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
-
- <TextView
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text="Gsensor不动的脱机时间:"
- />
-
- <com.pinwang.ailinkblesdk.view.SeekBarMin
- android:id="@+id/seekBar6"
- style="@style/Widget.AppCompat.SeekBar"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
-
- <TextView
- android:id="@+id/text6"
- android:layout_width="50dp"
- android:layout_height="wrap_content"
- android:text="阀值"
- />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- >
-
- <TextView
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text="马达震动时间:"
- />
-
- <com.pinwang.ailinkblesdk.view.SeekBarMin
- android:id="@+id/seekBar7"
- style="@style/Widget.AppCompat.SeekBar"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- />
-
- <TextView
- android:id="@+id/text7"
- android:layout_width="50dp"
- android:layout_height="wrap_content"
- android:text="阀值"
- />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="right"
- >
-
- <Button
- android:id="@+id/button_set"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="设置参数"
- tools:layout_editor_absoluteX="281dp"
- tools:layout_editor_absoluteY="120dp"/>
-
- </LinearLayout>
-
- </LinearLayout>
-
- </ScrollView>
-
-
- <ListView
- android:id="@+id/listview"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_marginTop="10dp"
- android:layout_weight="1"
- android:padding="10dp"
- android:stackFromBottom="true"
- android:transcriptMode="alwaysScroll"
- >
-
-
- </ListView>
-
- </LinearLayout>
|