123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?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:padding="10dp">
-
- <EditText
- android:id="@+id/et_type"
- android:layout_width="200dp"
- android:layout_height="wrap_content"
- android:hint="透传数据"
- android:text="4"
- />
-
- <Button
- android:id="@+id/btn1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="发送"
- />
-
- <Button
- android:id="@+id/clear"
- 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:padding="10dp">
-
- <EditText
- android:id="@+id/et_unit_weight"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:digits="0123456789"
- android:hint="weight"
- android:maxLength="1"
- android:text="0"
- />
-
- <EditText
- android:id="@+id/et_unit_height"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:digits="0123456789"
- android:hint="height"
- android:maxLength="1"
- android:text="0"
- />
-
- <Button
- android:id="@+id/btn_set_unit"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="set_unit"
- />
-
- </LinearLayout>
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="10dp">
-
- <Button
- android:id="@+id/btn_get_did"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="get_did"
- />
-
- <Button
- android:id="@+id/btnVersion"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="version"
- />
-
- <Button
- android:id="@+id/btnBattery"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Battery"
- />
-
- </LinearLayout>
-
-
- </LinearLayout>
- </ScrollView>
-
-
- <ListView
- android:id="@+id/listview"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="2"
- android:padding="10dp"
- android:stackFromBottom="true"
- android:transcriptMode="alwaysScroll"
- >
-
-
- </ListView>
-
- </LinearLayout>
|