|
@@ -0,0 +1,427 @@
|
|
|
+<?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="8dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/data_text"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text=""
|
|
|
+ android:textColor="@android:color/holo_green_dark" />
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:id="@+id/svLog"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvSync"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:visibility="visible" />
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:focusable="true"
|
|
|
+ android:focusableInTouchMode="true">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bind"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/bind" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/unbind"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:enabled="false"
|
|
|
+ android:text="@string/unbind" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/scan"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:enabled="false"
|
|
|
+ android:text="@string/scan" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/connect"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:enabled="false"
|
|
|
+ android:text="@string/connect"
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/disconnect"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:enabled="false"
|
|
|
+ android:text="@string/disconnect" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <ScrollView
|
|
|
+ android:id="@+id/svDevice"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/llConnect"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="gone">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_time"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_time" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/getcursportdata"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/sync_time" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_userinfo"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_userinfo" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_vir"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_vir" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_photo"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_photo" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_idletime"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_idletime" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_sleep"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_sleep" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/read_batery"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/read_batery" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/read_fw"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/read_deviceinfo" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_alarm"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_alarm" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/openheart"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/openheart" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/closeheart"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/closeheart" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/send_msg"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/send_msg" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_autoheart"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_autoheart" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_fuzhu"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_fuzhu" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_showmode"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_showmode" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/et_getdata"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:text="1" />
|
|
|
+
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/et_getday"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:text="0" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/getdata"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:text="@string/getdata" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bt_setHeartRateArea"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="设置心率区间" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/set_parameters"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_parameters" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="visible">
|
|
|
+
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etName"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:hint="name"
|
|
|
+ android:text="name" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etContent"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:hint="content"
|
|
|
+ android:text="content" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:visibility="visible">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etType"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:hint="type"
|
|
|
+ android:inputType="number"
|
|
|
+ android:text="3" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bNotify"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/send_call_notificatioin" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/setLanguage"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="设置系统语言" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/send_weather"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="发送天气信息" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bt_open_blood"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="打开血压" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bt_close_blood"
|
|
|
+ android:layout_width="0dip"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="关闭血压" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bSetDeviceCode"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/set_device_code" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/bGetDeviceCode"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/get_device_code" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </ScrollView>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+</LinearLayout>
|