123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <?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:orientation="vertical">
-
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="0.5">
-
- <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"
- android:layout_marginStart="10dp"
- android:layout_marginTop="10dp"
- android:gravity="center_vertical"
- >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Mac:"
-
- />
-
- <TextView
- android:id="@+id/tv_broadcast_mac"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text=""
- android:layout_marginStart="5dp"
- />
-
- </LinearLayout>
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="10dp"
- android:layout_marginTop="10dp"
- android:text="Weight:" />
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:padding="10dp">
-
-
- <RadioGroup
- android:id="@+id/radio_weight"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
-
- <RadioButton
- android:id="@+id/radio_weight_kg"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checked="true"
- android:text="kg" />
-
- <RadioButton
- android:id="@+id/radio_weight_jin"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="jin" />
-
- <RadioButton
- android:id="@+id/radio_weight_lb"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="lb:oz" />
-
- <RadioButton
- android:id="@+id/radio_weight_oz"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="oz" />
-
-
- <RadioButton
- android:id="@+id/radio_weight_st_lb"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="st:lb" />
-
- <RadioButton
- android:id="@+id/radio_weight_g"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="g" />
-
- <RadioButton
- android:id="@+id/radio_weight_lb_lb"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="lb" />
-
- </RadioGroup>
-
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_marginStart="10dp"
- android:layout_marginTop="10dp"
- android:gravity="center_vertical"
- >
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Temp:"
-
- />
-
- <TextView
- android:id="@+id/tv_broadcast_temp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="30℃"
- android:layout_marginStart="5dp"
- />
-
- </LinearLayout>
-
-
-
-
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="10dp">
-
- <Button
- android:id="@+id/clear"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/clear"
- android:textAllCaps="false" />
-
- <Button
- android:id="@+id/open"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="开始"
- android:textAllCaps="false" />
-
- <Button
- android:id="@+id/stop"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="停止"
- android:textAllCaps="false" />
-
- </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>
|