1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_ctrl"
android:layout_width="match_parent"
android:layout_height="match_parent">
 
<!--<include-->
<!--    android:id="@+id/hdl_top_bar_layout"-->
<!--    layout="@layout/hdl_toolbar_top_view_b" />-->
 
 
 
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_marginLeft="20dp"
    android:layout_marginRight="20dp"
    android:layout_marginTop="20dp"
    android:orientation="vertical">
 
    <TextView
        android:id="@+id/sensorText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="这个按钮做传感器演示" />
 
    <Button
        android:id="@+id/sensorbtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="获取传感器状态" />
</LinearLayout>
 
</RelativeLayout>