JLChen
2021-11-05 de72a7843ceb868c89fc11983e315849caa28573
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?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_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.hdl.sdk.ttl_sdk.activity.MainActivity">
 
    <include
        android:id="@+id/hdl_top_bar_layout"
        layout="@layout/hdl_toolbar_top_view_b"/>
 
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/hdl_top_bar_layout"
        android:orientation="vertical">
        <TextView
            android:id="@+id/tv_version"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/app_code"
            />
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp">
 
            <Button
                android:id="@+id/btn_search"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="重新搜索设备" />
            <Button
                android:id="@+id/btn_getlocal"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="加载本地设备" />
 
            <Button
                android:id="@+id/btn_open"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="开启串口" />
            <Button
                android:id="@+id/btn_close"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="关闭串口" />
 
 
 
        </LinearLayout>
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp">
        <Button
        android:id="@+id/btn_setting"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="修改子网号设备号" />
        <Button
            android:id="@+id/btn_add_device"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="手动添加设备" />
        <Button
            android:id="@+id/btn_sendtest"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="发送测试" />
        <Button
            android:id="@+id/btn_mcu"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="MCU"
            android:visibility="gone"
            />
 
        <Button
            android:id="@+id/btn_ZigBee"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="ZigBee"
            android:visibility="gone"
            />
    </LinearLayout>
 
 
        <TextView
            android:id="@+id/tv_result"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
 
        <android.support.v7.widget.RecyclerView
            android:id="@+id/listView_devices"
            android:layout_marginTop="20dp"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
 
        </android.support.v7.widget.RecyclerView>
 
    </LinearLayout>
 
</RelativeLayout>