panlili2024
2024-11-11 145de2dcd3124f236e7d06bcdee17c7be08048b1
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
36
37
38
39
<?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"
tools:context="com.hdl.sdk.ttl_sdk.activity.SensorActivity">
 
<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:layout_below="@+id/hdl_top_bar_layout"
    android:orientation="vertical">
 
    <TextView
        android:id="@+id/sensorText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="这个按钮做传感器演示,触发事件上报状态" />
 
    <TextView
        android:id="@+id/sensorStatusText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:text="这个按钮做传感器演示,获取环境传感器状态" />
 
</LinearLayout>
 
</RelativeLayout>