Skip to content

Commit 853273f

Browse files
committed
add scrollview
1 parent 533e1a1 commit 853273f

File tree

1 file changed

+171
-164
lines changed

1 file changed

+171
-164
lines changed
Lines changed: 171 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -1,208 +1,215 @@
1-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
1+
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
22
android:id="@+id/main"
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
5-
android:orientation="vertical">
6-
7-
<LinearLayout
8-
android:layout_width="match_parent"
9-
android:layout_height="48dp"
10-
android:layout_margin="8dp"
11-
android:gravity="center"
12-
android:padding="8dp">
13-
14-
<TextView
15-
android:layout_width="0dp"
16-
android:layout_height="wrap_content"
17-
android:layout_weight="1"
18-
android:text="Show Floating Window"
19-
android:textColor="?editTextColor"
20-
android:textSize="@dimen/title_size" />
21-
22-
<androidx.appcompat.widget.SwitchCompat
23-
android:id="@+id/show_window"
24-
android:layout_width="wrap_content"
25-
android:layout_height="wrap_content" />
26-
</LinearLayout>
27-
28-
<TextView
29-
android:layout_width="match_parent"
30-
android:layout_height="1dp"
31-
android:background="?actionBarDivider" />
5+
android:fillViewport="true"
6+
android:overScrollMode="always">
327

338
<LinearLayout
349
android:layout_width="match_parent"
3510
android:layout_height="wrap_content"
36-
android:layout_margin="8dp"
37-
android:gravity="center"
38-
android:minHeight="48dp"
39-
android:padding="8dp">
11+
android:orientation="vertical">
4012

4113
<LinearLayout
42-
android:layout_width="0dp"
43-
android:layout_height="wrap_content"
44-
android:layout_marginEnd="8dp"
45-
android:layout_weight="1"
46-
android:orientation="vertical">
14+
android:layout_width="match_parent"
15+
android:layout_height="48dp"
16+
android:layout_margin="8dp"
17+
android:gravity="center"
18+
android:padding="8dp">
4719

4820
<TextView
49-
android:layout_width="match_parent"
21+
android:layout_width="0dp"
5022
android:layout_height="wrap_content"
51-
android:layout_marginBottom="4dp"
52-
android:text="Use Notification"
23+
android:layout_weight="1"
24+
android:text="Show Floating Window"
5325
android:textColor="?editTextColor"
5426
android:textSize="@dimen/title_size" />
5527

56-
<TextView
57-
android:layout_width="match_parent"
58-
android:layout_height="wrap_content"
59-
android:text="Show a notification to observe activity info"
60-
android:textSize="@dimen/subtitle_size" />
28+
<androidx.appcompat.widget.SwitchCompat
29+
android:id="@+id/show_window"
30+
android:layout_width="wrap_content"
31+
android:layout_height="wrap_content" />
6132
</LinearLayout>
6233

63-
<androidx.appcompat.widget.SwitchCompat
64-
android:id="@+id/show_notification"
65-
android:layout_width="wrap_content"
66-
android:layout_height="wrap_content" />
67-
</LinearLayout>
34+
<TextView
35+
android:layout_width="match_parent"
36+
android:layout_height="1dp"
37+
android:background="?actionBarDivider" />
6838

69-
<TextView
70-
android:layout_width="match_parent"
71-
android:layout_height="1dp"
72-
android:background="?actionBarDivider" />
39+
<LinearLayout
40+
android:layout_width="match_parent"
41+
android:layout_height="wrap_content"
42+
android:layout_margin="8dp"
43+
android:gravity="center"
44+
android:minHeight="48dp"
45+
android:padding="8dp">
7346

74-
<LinearLayout
75-
android:layout_width="match_parent"
76-
android:layout_height="wrap_content"
77-
android:layout_margin="8dp"
78-
android:gravity="center"
79-
android:minHeight="48dp"
80-
android:padding="8dp">
47+
<LinearLayout
48+
android:layout_width="0dp"
49+
android:layout_height="wrap_content"
50+
android:layout_marginEnd="8dp"
51+
android:layout_weight="1"
52+
android:orientation="vertical">
53+
54+
<TextView
55+
android:layout_width="match_parent"
56+
android:layout_height="wrap_content"
57+
android:layout_marginBottom="4dp"
58+
android:text="Use Notification"
59+
android:textColor="?editTextColor"
60+
android:textSize="@dimen/title_size" />
61+
62+
<TextView
63+
android:layout_width="match_parent"
64+
android:layout_height="wrap_content"
65+
android:text="Show a notification to observe activity info"
66+
android:textSize="@dimen/subtitle_size" />
67+
</LinearLayout>
68+
69+
<androidx.appcompat.widget.SwitchCompat
70+
android:id="@+id/show_notification"
71+
android:layout_width="wrap_content"
72+
android:layout_height="wrap_content" />
73+
</LinearLayout>
74+
75+
<TextView
76+
android:layout_width="match_parent"
77+
android:layout_height="1dp"
78+
android:background="?actionBarDivider" />
8179

8280
<LinearLayout
83-
android:layout_width="0dp"
81+
android:layout_width="match_parent"
8482
android:layout_height="wrap_content"
85-
android:layout_marginEnd="8dp"
86-
android:layout_weight="1"
87-
android:orientation="vertical">
83+
android:layout_margin="8dp"
84+
android:gravity="center"
85+
android:minHeight="48dp"
86+
android:padding="8dp">
8887

89-
<TextView
90-
android:layout_width="match_parent"
88+
<LinearLayout
89+
android:layout_width="0dp"
9190
android:layout_height="wrap_content"
92-
android:layout_marginBottom="4dp"
93-
android:text="Use Accessibility Service"
94-
android:textColor="?editTextColor"
95-
android:textSize="@dimen/title_size" />
91+
android:layout_marginEnd="8dp"
92+
android:layout_weight="1"
93+
android:orientation="vertical">
94+
95+
<TextView
96+
android:layout_width="match_parent"
97+
android:layout_height="wrap_content"
98+
android:layout_marginBottom="4dp"
99+
android:text="Use Accessibility Service"
100+
android:textColor="?editTextColor"
101+
android:textSize="@dimen/title_size" />
102+
103+
<TextView
104+
android:layout_width="match_parent"
105+
android:layout_height="wrap_content"
106+
android:text="Improve package monitoring significantly"
107+
android:textSize="@dimen/subtitle_size" />
108+
</LinearLayout>
109+
110+
<androidx.appcompat.widget.SwitchCompat
111+
android:id="@+id/use_accessibility"
112+
android:layout_width="wrap_content"
113+
android:layout_height="wrap_content"
114+
android:visibility="@integer/use_accessibility" />
96115

97-
<TextView
98-
android:layout_width="match_parent"
116+
<Button
117+
android:id="@+id/download_accessibility"
118+
style="@style/Button"
119+
android:layout_width="wrap_content"
99120
android:layout_height="wrap_content"
100-
android:text="Improve package monitoring significantly"
101-
android:textSize="@dimen/subtitle_size" />
121+
android:text="Download"
122+
android:visibility="@integer/show_global_link" />
102123
</LinearLayout>
103124

104-
<androidx.appcompat.widget.SwitchCompat
105-
android:id="@+id/use_accessibility"
106-
android:layout_width="wrap_content"
107-
android:layout_height="wrap_content"
125+
<TextView
126+
android:id="@+id/autostart_divider"
127+
android:layout_width="match_parent"
128+
android:layout_height="1dp"
129+
android:background="?actionBarDivider"
108130
android:visibility="@integer/use_accessibility" />
109131

110-
<Button
111-
android:id="@+id/download_accessibility"
112-
style="@style/Button"
113-
android:layout_width="wrap_content"
114-
android:layout_height="wrap_content"
115-
android:text="Download"
116-
android:visibility="@integer/show_global_link" />
117-
</LinearLayout>
118-
119-
<TextView
120-
android:id="@+id/autostart_divider"
121-
android:layout_width="match_parent"
122-
android:layout_height="1dp"
123-
android:background="?actionBarDivider"
124-
android:visibility="@integer/use_accessibility" />
125-
126-
<LinearLayout
127-
android:id="@+id/autostart_layout"
128-
android:layout_width="match_parent"
129-
android:layout_height="wrap_content"
130-
android:layout_margin="8dp"
131-
android:gravity="center"
132-
android:minHeight="48dp"
133-
android:padding="8dp"
134-
android:visibility="@integer/use_accessibility">
135-
136132
<LinearLayout
137-
android:layout_width="0dp"
133+
android:id="@+id/autostart_layout"
134+
android:layout_width="match_parent"
138135
android:layout_height="wrap_content"
139-
android:layout_marginEnd="8dp"
140-
android:layout_weight="1"
141-
android:orientation="vertical">
142-
143-
<TextView
144-
android:layout_width="match_parent"
136+
android:layout_margin="8dp"
137+
android:gravity="center"
138+
android:minHeight="48dp"
139+
android:padding="8dp"
140+
android:visibility="@integer/use_accessibility">
141+
142+
<LinearLayout
143+
android:layout_width="0dp"
145144
android:layout_height="wrap_content"
146-
android:layout_marginBottom="4dp"
147-
android:text="Use Autostart"
148-
android:textColor="?editTextColor"
149-
android:textSize="@dimen/title_size" />
150-
151-
<TextView
152-
android:layout_width="match_parent"
145+
android:layout_marginEnd="8dp"
146+
android:layout_weight="1"
147+
android:orientation="vertical">
148+
149+
<TextView
150+
android:layout_width="match_parent"
151+
android:layout_height="wrap_content"
152+
android:layout_marginBottom="4dp"
153+
android:text="Use Autostart"
154+
android:textColor="?editTextColor"
155+
android:textSize="@dimen/title_size" />
156+
157+
<TextView
158+
android:layout_width="match_parent"
159+
android:layout_height="wrap_content"
160+
android:text="Fix accessibility service problems"
161+
android:textSize="@dimen/subtitle_size" />
162+
</LinearLayout>
163+
164+
<Button
165+
android:id="@+id/allow_autostart"
166+
style="@style/Button"
167+
android:layout_width="wrap_content"
153168
android:layout_height="wrap_content"
154-
android:text="Fix accessibility service problems"
155-
android:textSize="@dimen/subtitle_size" />
169+
android:text="Enable" />
156170
</LinearLayout>
157171

158-
<Button
159-
android:id="@+id/allow_autostart"
160-
style="@style/Button"
161-
android:layout_width="wrap_content"
162-
android:layout_height="wrap_content"
163-
android:text="Enable" />
164-
</LinearLayout>
165-
166-
<TextView
167-
android:layout_width="match_parent"
168-
android:layout_height="1dp"
169-
android:background="?actionBarDivider" />
170-
171-
<LinearLayout
172-
android:layout_width="match_parent"
173-
android:layout_height="wrap_content"
174-
android:layout_margin="8dp"
175-
android:gravity="center"
176-
android:minHeight="48dp"
177-
android:padding="8dp">
172+
<TextView
173+
android:layout_width="match_parent"
174+
android:layout_height="1dp"
175+
android:background="?actionBarDivider" />
178176

179177
<LinearLayout
180-
android:layout_width="0dp"
178+
android:layout_width="match_parent"
181179
android:layout_height="wrap_content"
182-
android:layout_marginEnd="8dp"
183-
android:layout_weight="1"
184-
android:orientation="vertical">
180+
android:layout_margin="8dp"
181+
android:gravity="center"
182+
android:minHeight="48dp"
183+
android:padding="8dp">
185184

186-
<TextView
187-
android:layout_width="match_parent"
185+
<LinearLayout
186+
android:layout_width="0dp"
188187
android:layout_height="wrap_content"
189-
android:layout_marginBottom="4dp"
190-
android:text="Set Window Size"
191-
android:textColor="?editTextColor"
192-
android:textSize="@dimen/title_size" />
193-
194-
<TextView
195-
android:layout_width="match_parent"
188+
android:layout_marginEnd="8dp"
189+
android:layout_weight="1"
190+
android:orientation="vertical">
191+
192+
<TextView
193+
android:layout_width="match_parent"
194+
android:layout_height="wrap_content"
195+
android:layout_marginBottom="4dp"
196+
android:text="Set Window Size"
197+
android:textColor="?editTextColor"
198+
android:textSize="@dimen/title_size" />
199+
200+
<TextView
201+
android:layout_width="match_parent"
202+
android:layout_height="wrap_content"
203+
android:text="Change the width of popup window"
204+
android:textSize="@dimen/subtitle_size" />
205+
</LinearLayout>
206+
207+
<Button
208+
android:id="@+id/configure_width"
209+
style="@style/Button"
210+
android:layout_width="wrap_content"
196211
android:layout_height="wrap_content"
197-
android:text="Change the width of popup window"
198-
android:textSize="@dimen/subtitle_size" />
212+
android:text="Configure" />
199213
</LinearLayout>
200-
201-
<Button
202-
android:id="@+id/configure_width"
203-
style="@style/Button"
204-
android:layout_width="wrap_content"
205-
android:layout_height="wrap_content"
206-
android:text="Configure" />
207214
</LinearLayout>
208-
</LinearLayout>
215+
</androidx.core.widget.NestedScrollView>

0 commit comments

Comments
 (0)