Android做一个WiFi信号测试,Android开发——WiFi信号检测
1 <?xml version="1.0" encoding="utf-8"?>
2
4 xmlns:app="/apk/res-auto"
5 xmlns:tools="/tools"
6 android:layout_width="match_parent"
7 android:layout_height="match_parent"
8 tools:context="com.lee.rss_collector.MainActivity">
9
10
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content"
14 android:layout_margin="30dp"
15 android:gravity="start|center_vertical">
16
17
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:layout_alignParentStart="true"
22 android:layout_marginStart="20dp"
23 android:text="@string/start_scan" />
24
25
27 android:layout_width="wrap_content"
28 android:layout_height="wrap_content"
29 android:layout_marginStart="10dp"
30 android:layout_toEndOf="@+id/start_button"
31 android:text="@string/stop_scan" />
32
33
35 android:layout_width="wrap_content"
36 android:layout_height="wrap_content"
37 android:layout_marginStart="10dp"
38 android:layout_toEndOf="@+id/stop_button"
39 android:text="@string/save_button" />
40
41
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:layout_below="@+id/start_button"
46 android:layout_marginTop="10dp"
47 android:orientation="vertical">
48
49
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:text="@string/curConnectWiFi" />
54
55
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:cursorVisible="false"
60 android:focusable="false"
61 android:focusableInTouchMode="false" />
62
63
64
66 android:layout_width="match_parent"
67 android:layout_height="wrap_content"
68 android:orientation="vertical"
69 android:layout_below="@+id/curr_connected">
70
71
73 android:layout_width="match_parent"
74 android:layout_height="wrap_content"
75 android:layout_marginBottom="20dp"
76 android:text="@string/scanResult" />
77
79 android:layout_height="wrap_content"
80 android:fadingEdge="vertical"
81 android:scrollbars="vertical">
82
83
85 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
87 android:orientation="vertical">
88
89
91 android:layout_width="match_parent"
92 android:layout_height="wrap_content"
93 android:cursorVisible="false"
94 android:focusable="false"
95 android:focusableInTouchMode="false" />
96
97
98
99
100
101
102
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:orientation="vertical"
107 app:layout_constraintGuide_begin="20dp" />
108
109
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
113 android:orientation="horizontal"
114 app:layout_constraintGuide_begin="20dp" />
115
116
118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content" />
120
Android做一个WiFi信号测试,Android开发——WiFi信号检测
1 <?xml version="1.0" encoding="utf-8"?>
2
4 xmlns:app="/apk/res-auto"
5 xmlns:tools="/tools"
6 android:layout_width="match_parent"
7 android:layout_height="match_parent"
8 tools:context="com.lee.rss_collector.MainActivity">
9
10
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content"
14 android:layout_margin="30dp"
15 android:gravity="start|center_vertical">
16
17
19 android:layout_width="wrap_content"
20 android:layout_height="wrap_content"
21 android:layout_alignParentStart="true"
22 android:layout_marginStart="20dp"
23 android:text="@string/start_scan" />
24
25
27 android:layout_width="wrap_content"
28 android:layout_height="wrap_content"
29 android:layout_marginStart="10dp"
30 android:layout_toEndOf="@+id/start_button"
31 android:text="@string/stop_scan" />
32
33
35 android:layout_width="wrap_content"
36 android:layout_height="wrap_content"
37 android:layout_marginStart="10dp"
38 android:layout_toEndOf="@+id/stop_button"
39 android:text="@string/save_button" />
40
41
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:layout_below="@+id/start_button"
46 android:layout_marginTop="10dp"
47 android:orientation="vertical">
48
49
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:text="@string/curConnectWiFi" />
54
55
57 android:layout_width="match_parent"
58 android:layout_height="wrap_content"
59 android:cursorVisible="false"
60 android:focusable="false"
61 android:focusableInTouchMode="false" />
62
63
64
66 android:layout_width="match_parent"
67 android:layout_height="wrap_content"
68 android:orientation="vertical"
69 android:layout_below="@+id/curr_connected">
70
71
73 android:layout_width="match_parent"
74 android:layout_height="wrap_content"
75 android:layout_marginBottom="20dp"
76 android:text="@string/scanResult" />
77
79 android:layout_height="wrap_content"
80 android:fadingEdge="vertical"
81 android:scrollbars="vertical">
82
83
85 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
87 android:orientation="vertical">
88
89
91 android:layout_width="match_parent"
92 android:layout_height="wrap_content"
93 android:cursorVisible="false"
94 android:focusable="false"
95 android:focusableInTouchMode="false" />
96
97
98
99
100
101
102
104 android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:orientation="vertical"
107 app:layout_constraintGuide_begin="20dp" />
108
109
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
113 android:orientation="horizontal"
114 app:layout_constraintGuide_begin="20dp" />
115
116
118 android:layout_width="wrap_content"
119 android:layout_height="wrap_content" />
120