Mercurial > 510Connectbot
annotate app/src/main/res/layout/act_console.xml @ 486:6751ed7635f6
add foreground_service permission to manifest
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 14 Oct 2020 09:07:21 -0700 |
parents | 7492d2cb7b75 |
children |
rev | line source |
---|---|
0 | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- | |
3 /* | |
4 * ConnectBot: simple, powerful, open-source SSH client for Android | |
5 * Copyright 2007 Kenny Root, Jeffrey Sharkey | |
6 * | |
7 * Licensed under the Apache License, Version 2.0 (the "License"); | |
8 * you may not use this file except in compliance with the License. | |
9 * You may obtain a copy of the License at | |
10 * | |
11 * http://www.apache.org/licenses/LICENSE-2.0 | |
12 * | |
13 * Unless required by applicable law or agreed to in writing, software | |
14 * distributed under the License is distributed on an "AS IS" BASIS, | |
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
16 * See the License for the specific language governing permissions and | |
17 * limitations under the License. | |
18 */ | |
19 --> | |
20 | |
21 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
22 android:layout_width="fill_parent" | |
23 android:layout_height="fill_parent" | |
24 > | |
25 | |
26 <TextView | |
27 android:id="@android:id/empty" | |
28 android:layout_width="fill_parent" | |
29 android:layout_height="fill_parent" | |
30 android:text="@string/terminal_no_hosts_connected" | |
31 android:textAppearance="?android:attr/textAppearanceMedium" | |
32 android:gravity="center" | |
33 /> | |
34 | |
35 <ViewFlipper | |
36 android:id="@+id/console_flip" | |
37 android:layout_width="fill_parent" | |
38 android:layout_height="fill_parent" | |
39 /> | |
40 | |
41 <RelativeLayout | |
42 android:id="@+id/console_password_group" | |
43 android:layout_width="fill_parent" | |
44 android:layout_height="wrap_content" | |
45 android:layout_alignParentBottom="true" | |
46 android:padding="5dip" | |
47 android:background="#80000000" | |
48 android:fadingEdge="horizontal" | |
49 android:fadingEdgeLength="25dip" | |
50 android:visibility="gone" | |
51 > | |
52 | |
53 <TextView | |
54 android:id="@+id/console_password_instructions" | |
55 android:layout_height="wrap_content" | |
56 android:textAppearance="?android:attr/textAppearanceMedium" | |
57 android:layout_width="fill_parent" | |
58 android:visibility="gone" | |
59 android:layout_marginBottom="5dip" | |
60 /> | |
61 | |
62 <EditText | |
63 android:id="@+id/console_password" | |
64 android:layout_width="fill_parent" | |
65 android:layout_height="wrap_content" | |
66 android:inputType="textPassword" | |
67 android:singleLine="true" | |
68 android:layout_below="@+id/console_password_instructions" | |
69 /> | |
70 | |
71 </RelativeLayout> | |
72 | |
73 <RelativeLayout | |
74 android:id="@+id/console_boolean_group" | |
75 android:layout_width="fill_parent" | |
76 android:layout_height="wrap_content" | |
77 android:layout_alignParentBottom="true" | |
78 android:padding="5dip" | |
79 android:background="#80000000" | |
80 android:fadingEdge="horizontal" | |
81 android:fadingEdgeLength="25dip" | |
82 android:visibility="gone" | |
83 > | |
84 | |
85 <TextView | |
86 android:id="@+id/console_prompt" | |
87 android:layout_height="wrap_content" | |
88 android:layout_width="fill_parent" | |
89 android:textAppearance="?android:attr/textAppearanceMedium" | |
90 /> | |
91 | |
92 <Button | |
93 android:id="@+id/console_prompt_no" | |
94 android:text="@string/button_no" | |
95 android:paddingTop="5dip" | |
96 android:paddingBottom="10dip" | |
97 android:paddingLeft="40dip" | |
98 android:paddingRight="40dip" | |
99 android:layout_width="wrap_content" | |
100 android:layout_height="wrap_content" | |
101 android:layout_alignParentRight="true" | |
102 android:layout_below="@+id/console_prompt" | |
103 android:clickable="false" | |
104 /> | |
105 | |
106 <Button | |
107 android:id="@+id/console_prompt_yes" | |
108 android:text="@string/button_yes" | |
109 android:paddingTop="5dip" | |
110 android:paddingBottom="10dip" | |
111 android:paddingLeft="40dip" | |
112 android:paddingRight="40dip" | |
113 android:layout_width="wrap_content" | |
114 android:layout_height="wrap_content" | |
115 android:layout_toLeftOf="@+id/console_prompt_no" | |
116 android:layout_below="@+id/console_prompt" | |
117 /> | |
118 | |
119 </RelativeLayout> | |
120 | |
121 <RelativeLayout | |
122 android:id="@+id/keyboard_group" | |
123 android:layout_width="fill_parent" | |
124 android:layout_height="wrap_content" | |
125 android:layout_alignParentBottom="true" | |
126 android:padding="15dip" | |
127 android:visibility="gone"> | |
128 | |
129 <ImageView | |
130 android:id="@+id/button_input" | |
131 android:paddingRight="15dip" | |
132 android:layout_width="wrap_content" | |
133 android:layout_height="wrap_content" | |
134 android:layout_toRightOf="@+id/button_sym" | |
135 android:layout_alignParentBottom="true" | |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
438
diff
changeset
|
136 android:src="@drawable/button_input" |
0 | 137 android:contentDescription="@string/image_description_line_input" |
138 /> | |
139 | |
140 <ImageView | |
141 android:id="@+id/button_keyboard" | |
142 android:layout_width="wrap_content" | |
143 android:layout_height="wrap_content" | |
144 android:layout_alignParentBottom="true" | |
145 android:layout_alignParentRight="true" | |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
438
diff
changeset
|
146 android:src="@drawable/button_keyboard" |
0 | 147 android:contentDescription="@string/image_description_show_keyboard" |
148 /> | |
149 | |
150 <ImageView | |
151 android:id="@+id/button_ctrl" | |
152 android:paddingRight="15dip" | |
153 android:layout_width="wrap_content" | |
154 android:layout_height="wrap_content" | |
155 android:layout_alignParentLeft="true" | |
156 android:layout_alignParentBottom="true" | |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
438
diff
changeset
|
157 android:src="@drawable/button_ctrl" |
0 | 158 android:contentDescription="@string/image_description_toggle_control_character" |
159 /> | |
160 | |
161 <ImageView | |
162 android:id="@+id/button_esc" | |
163 android:paddingRight="15dip" | |
164 android:layout_width="wrap_content" | |
165 android:layout_height="wrap_content" | |
166 android:layout_toRightOf="@+id/button_ctrl" | |
167 android:layout_alignParentBottom="true" | |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
438
diff
changeset
|
168 android:src="@drawable/button_esc" |
0 | 169 android:contentDescription="@string/image_description_send_escape_character" |
170 /> | |
171 | |
172 <ImageView | |
173 android:id="@+id/button_sym" | |
174 android:paddingRight="15dip" | |
175 android:layout_width="wrap_content" | |
176 android:layout_height="wrap_content" | |
177 android:layout_alignParentBottom="true" | |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
438
diff
changeset
|
178 android:layout_toRightOf="@+id/button_esc" |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
438
diff
changeset
|
179 android:src="@drawable/button_sym" |
0 | 180 android:contentDescription="@string/image_description_sym" |
181 /> | |
182 | |
183 </RelativeLayout> | |
184 | |
185 </RelativeLayout> |