OSDN Git Service

Initial import from http://code.google.com/p/connectbot/ (r416)
[android-x86/packages-apps-ConnectBot.git] / res / layout / act_console.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3         ConnectBot: simple, powerful, open-source SSH client for Android
4         Copyright (C) 2007-2008 Kenny Root, Jeffrey Sharkey
5
6         This program is free software: you can redistribute it and/or modify
7         it under the terms of the GNU General Public License as published by
8         the Free Software Foundation, either version 3 of the License, or
9         (at your option) any later version.
10
11         This program is distributed in the hope that it will be useful,
12         but WITHOUT ANY WARRANTY; without even the implied warranty of
13         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14         GNU General Public License for more details.
15
16         You should have received a copy of the GNU General Public License
17         along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 -->
19
20 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
21         android:layout_width="fill_parent"
22         android:layout_height="fill_parent"
23         android:background="#ff000000"
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:password="true"
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/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/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         <ImageView
122                 android:id="@+id/keyboard_button"
123                 android:paddingRight="15dip"
124                 android:paddingBottom="15dip"
125                 android:layout_width="wrap_content"
126                 android:layout_height="wrap_content"
127                 android:layout_alignParentBottom="true"
128                 android:layout_alignParentRight="true"
129                 android:visibility="gone"
130                 android:src="@+drawable/keyboard_icon"
131                 />
132
133 </RelativeLayout>