123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:focusable="true"
- android:focusableInTouchMode="true"
- 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="wrap_content"
- android:orientation="vertical">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
-
- <Button
- android:id="@+id/btnClear"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/clear" />
-
- <Button
- android:id="@+id/btnPause"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="暂停" />
- <Button
- android:id="@+id/btnDis"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="断开" />
- <Button
- android:id="@+id/btnConnect"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="连接" />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
-
-
- <Button
- android:id="@+id/btnHandshake"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/handshake" />
-
- <Button
- android:id="@+id/btnVersion"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读版本" />
-
- <Button
- android:id="@+id/btnBattery"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读电量" />
-
- <Button
- android:id="@+id/btnNameRssi"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读名称信号" />
-
- </LinearLayout>
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp">
-
- <Button
- android:id="@+id/btnTimeRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读时间" />
-
- <Button
- android:id="@+id/btnTimeWrite"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="写时间" />
-
- <Button
- android:id="@+id/btnMacRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读mac" />
-
- <Button
- android:id="@+id/btnBmRestart"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="重启模块" />
-
- </LinearLayout>
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp">
-
- <Button
- android:id="@+id/btnMcuType"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="设置模式" />
-
- <Button
- android:id="@+id/btnBmReset"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="出厂设置" />
-
- <Button
- android:id="@+id/btnUnits"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读单位" />
-
- <EditText
- android:id="@+id/etMcuType"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:hint="串口,i2c,spi"
- android:text="1" />
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp">
-
-
-
- <Button
- android:id="@+id/btnDidRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读DID" />
-
-
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp">
-
- <Button
- android:id="@+id/btnNameWrite"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="写名称" />
-
- <Button
- android:id="@+id/btnNameRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读名称" />
-
- <Button
- android:id="@+id/btn_start_ble"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="唤醒模块" />
-
- <EditText
- android:id="@+id/etName"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:maxLength="13" />
-
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp">
-
- <Button
- android:id="@+id/btnMacTypeWrite"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="写Mac大小端" />
-
- <Button
- android:id="@+id/btnMacTypeRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读Mac大小端" />
-
- <EditText
- android:id="@+id/etMacType"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:digits="0987654321"
- android:maxLength="1" />
- </LinearLayout>
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp">
-
- <Button
- android:id="@+id/btnBroadcastTimeWrite"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="写广播间隔" />
-
- <Button
- android:id="@+id/btnBroadcastTimeRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读广播间隔" />
-
- <EditText
- android:id="@+id/etBroadcastTime"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:digits="0987654321" />
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="5dp">
-
- <Button
- android:id="@+id/btnSleepTimeWrite"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="写自动休眠" />
-
- <Button
- android:id="@+id/btnSleepTimeRead"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="读自动休眠" />
-
- <EditText
- android:id="@+id/etSleepTime"
- android:layout_width="150dp"
- android:layout_height="wrap_content"
- android:digits="0987654321,"
- android:hint="标记,时间,操作,广播时间"
- android:text="1,60,1,1000" />
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="horizontal"
- android:padding="5dp"
- android:layout_height="wrap_content">
-
- <EditText
- android:id="@+id/et_set_device"
- android:layout_width="0dp"
- android:layout_weight="1"
- android:digits="0123456789abcdefABCDEF, "
- android:layout_height="wrap_content" />
-
- <Button
- android:id="@+id/btn_set_device"
- android:text="设置设备信息"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
-
- <Button
- android:id="@+id/btn_get_device"
- android:text="读取设备信息"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
-
- </LinearLayout>
-
- </LinearLayout>
-
- </ScrollView>
-
-
- <ListView
- android:id="@+id/listview"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:padding="10dp"
- android:stackFromBottom="true"
- android:transcriptMode="alwaysScroll">
-
-
- </ListView>
-
-
-
- </LinearLayout>
|