Statistics
| Branch: | Revision:

root / res / layout / viewserver.xml @ f58bf9f4

History | View | Annotate | Download (10.1 kB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent">
5
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
6
    android:id="@+id/view_server_layout"
7
    android:orientation="vertical"
8
    android:layout_width="fill_parent"
9
    android:layout_height="fill_parent"
10
    >
11

    
12
<!-- 
13
Name
14
Flavor (256 Server)
15
Image (Ubuntu)
16
Memory
17
Disk
18
Status
19

20
Public IP Addresses
21

22
Private IP Addresses
23

24
Actions
25
-Reset Password
26
-Resize Server
27
-Delete Server
28

29
Soft Reboot / Hard Reboot
30
    android:layout_marginTop="-300dip"
31

32
 -->
33

    
34
<ImageView
35
    android:id="@+id/view_server_os_logo"
36
    android:layout_width="700dip"
37
    android:layout_height="700dip"
38
    android:adjustViewBounds="true"
39
    android:layout_gravity="left"
40
    />
41

    
42

    
43
<!-- Server Name - Setting top margin to -700 so it will sit over the OS logo image -->
44
<TextView  
45
    android:layout_width="fill_parent" 
46
    android:layout_height="wrap_content"
47
    android:layout_marginLeft="22dip" 
48
    android:layout_marginTop="-700dip"
49
    android:text="Server Name"
50
    android:singleLine="false"
51
    />
52
<TextView android:id="@+id/view_server_name"
53
    android:layout_height="wrap_content"
54
    android:layout_width="fill_parent"
55
    android:layout_marginLeft="22dip"
56
    android:layout_marginRight="30dip"
57
    android:scrollHorizontally="true"
58
    android:gravity="fill_horizontal"
59
    android:textStyle="bold"
60
    android:textSize="20.0sp"
61
    android:textColor="#fff"
62
    />
63
    
64
<!-- Operating System -->
65
<TextView  
66
    android:layout_width="fill_parent" 
67
    android:layout_height="wrap_content"
68
    android:layout_marginLeft="22dip" 
69
    android:text="Operating System"
70
    android:singleLine="false"
71
    />
72
<TextView android:id="@+id/view_server_os"
73
    android:layout_height="wrap_content"
74
    android:layout_width="fill_parent"
75
    android:layout_marginLeft="22dip"
76
    android:layout_marginRight="30dip"
77
    android:scrollHorizontally="true"
78
    android:gravity="fill_horizontal"
79
    android:textStyle="bold"
80
    android:textSize="20.0sp"
81
    android:textColor="#fff"
82
    />
83

    
84
<!-- Memory -->
85
<TextView  
86
    android:layout_width="fill_parent" 
87
    android:layout_height="wrap_content"
88
    android:layout_marginLeft="22dip" 
89
    android:text="Memory"
90
    android:singleLine="false"
91
    />
92
<TextView android:id="@+id/view_server_memory"
93
    android:layout_height="wrap_content"
94
    android:layout_width="fill_parent"
95
    android:layout_marginLeft="22dip"
96
    android:layout_marginRight="30dip"
97
    android:scrollHorizontally="true"
98
    android:gravity="fill_horizontal"
99
    android:textStyle="bold"
100
    android:textSize="20.0sp"
101
    android:textColor="#fff"
102
    />
103

    
104
<!-- Disk -->
105
<TextView  
106
    android:layout_width="fill_parent" 
107
    android:layout_height="wrap_content"
108
    android:layout_marginLeft="22dip" 
109
    android:text="Disk"
110
    android:singleLine="false"
111
    />
112
<TextView android:id="@+id/view_server_disk"
113
    android:layout_height="wrap_content"
114
    android:layout_width="fill_parent"
115
    android:layout_marginLeft="22dip"
116
    android:layout_marginRight="30dip"
117
    android:scrollHorizontally="true"
118
    android:gravity="fill_horizontal"
119
    android:textStyle="bold"
120
    android:textSize="20.0sp"
121
    android:textColor="#fff"
122
    />
123

    
124
<!-- Status -->
125
<TextView  
126
    android:layout_width="fill_parent" 
127
    android:layout_height="wrap_content"
128
    android:layout_marginLeft="22dip" 
129
    android:text="Status"
130
    android:singleLine="false"
131
    />
132
<TextView android:id="@+id/view_server_status"
133
    android:layout_height="wrap_content"
134
    android:layout_width="fill_parent"
135
    android:layout_marginLeft="22dip"
136
    android:layout_marginRight="30dip"
137
    android:scrollHorizontally="true"
138
    android:gravity="fill_horizontal"
139
    android:textStyle="bold"
140
    android:textSize="20.0sp"
141
    android:textColor="#fff"
142
    />
143
    
144
<!-- Public IP Addresses -->
145
<TextView  
146
    android:layout_width="fill_parent" 
147
    android:layout_height="wrap_content"
148
    android:layout_marginLeft="22dip" 
149
    android:text="Public IP Addresses"
150
    android:singleLine="false"
151
    />
152
    
153
<!-- Private IP Addresses -->
154
<TextView  
155
    android:layout_width="fill_parent" 
156
    android:layout_height="wrap_content"
157
    android:layout_marginLeft="22dip" 
158
    android:text="Private IP Addresses"
159
    android:singleLine="false"
160
    />
161
   
162
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
163
            android:orientation="horizontal"
164
            android:layout_width="fill_parent"
165
            android:layout_height="fill_parent"
166
            android:layout_marginTop="10dip"
167
            >
168
                <Button xmlns:android="http://schemas.android.com/apk/res/android"
169
                    android:id="@+id/view_server_soft_reboot_button"
170
                    android:text="Soft Reboot"
171
                    android:layout_width="130dip"
172
                    android:layout_height="wrap_content"
173
                    android:layout_gravity="left"
174
                    android:layout_marginLeft="20dip"
175
                    android:layout_marginTop="10dip"
176
                    />
177
                
178
                <Button xmlns:android="http://schemas.android.com/apk/res/android"
179
                    android:id="@+id/view_server_hard_reboot_button"
180
                    android:text="Hard Reboot"
181
                    android:layout_width="130dip"
182
                    android:layout_height="wrap_content"
183
                    android:layout_gravity="left"
184
                    android:layout_marginLeft="10dip"
185
                    android:layout_marginTop="10dip"
186
                    />
187
        </LinearLayout>
188
        
189
    <!-- 
190
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
191
        android:orientation="horizontal"
192
        android:layout_width="fill_parent"
193
        android:layout_height="fill_parent"
194
        android:layout_marginTop="10dip"
195
        >
196
        <Button xmlns:android="http://schemas.android.com/apk/res/android"
197
            android:id="@+id/view_server_resize_button"
198
            android:text="Resize Server"
199
            android:layout_width="130dip"
200
            android:layout_height="wrap_content"
201
            android:layout_gravity="left"
202
            android:layout_marginLeft="20dip"
203
            android:layout_marginTop="10dip"
204
            />
205
        
206
        <Button xmlns:android="http://schemas.android.com/apk/res/android"
207
            android:id="@+id/view_server_rebuild_button"
208
            android:text="Rebuild Server"
209
            android:layout_width="130dip"
210
            android:layout_height="wrap_content"
211
            android:layout_gravity="left"
212
            android:layout_marginLeft="10dip"
213
            android:layout_marginTop="10dip"
214
            />
215
    </LinearLayout>
216
    -->
217
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
218
        android:orientation="horizontal"
219
        android:layout_width="fill_parent"
220
        android:layout_height="fill_parent"
221
        android:layout_marginTop="10dip"
222
        >
223
        <Button xmlns:android="http://schemas.android.com/apk/res/android"
224
            android:id="@+id/view_server_resize_button"
225
            android:text="Resize Server"
226
            android:layout_width="130dip"
227
            android:layout_height="wrap_content"
228
            android:layout_gravity="left"
229
            android:layout_marginLeft="20dip"
230
            android:layout_marginTop="10dip"
231
            />
232
        
233
        <Button xmlns:android="http://schemas.android.com/apk/res/android"
234
            android:id="@+id/view_server_delete_button"
235
            android:text="Delete Server"
236
            android:layout_width="130dip"
237
            android:layout_height="wrap_content"
238
            android:layout_gravity="left"
239
            android:layout_marginLeft="10dip"
240
            android:layout_marginTop="10dip"
241
            />
242
    </LinearLayout>
243
    
244
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
245
            android:id="@+id/linearLayout1" 
246
            android:layout_width="fill_parent" 
247
            android:layout_marginTop="10dip" 
248
            android:orientation="horizontal" 
249
            android:layout_height="fill_parent">
250
        <Button xmlns:android="http://schemas.android.com/apk/res/android"
251
                android:text="Rename Server" 
252
                android:layout_width="130dip" 
253
                android:layout_marginTop="10dip" 
254
                android:layout_gravity="left" 
255
                android:id="@+id/view_server_rename_button" 
256
                android:layout_marginLeft="20dip" 
257
                android:layout_height="wrap_content">
258
        </Button>
259
        <Button xmlns:android="http://schemas.android.com/apk/res/android"
260
                android:text="Rebuild Server" 
261
                android:layout_width="130dip" 
262
                android:layout_marginTop="10dip" 
263
                android:layout_gravity="left" 
264
                android:id="@+id/view_server_rebuild_button" 
265
                android:layout_marginLeft="10dip" 
266
                android:layout_height="wrap_content">
267
        </Button>
268
    </LinearLayout>
269
  
270
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
271
            android:layout_width="fill_parent" 
272
            android:orientation="horizontal"         
273
            android:layout_height="fill_parent" 
274
            android:layout_marginTop="10dip">
275
            
276
            <Button xmlns:android="http://schemas.android.com/apk/res/android"
277
            android:text="Backup Schedule"
278
            android:layout_width="130dip"
279
            android:layout_height="wrap_content"
280
            android:layout_gravity="left"
281
            android:layout_marginLeft="20dip"
282
            android:layout_marginTop="10dip"
283
            android:id="@+id/view_server_backup_button"/>
284
            <Button xmlns:android="http://schemas.android.com/apk/res/android"
285
                    android:id="@+id/view_server_password_button" 
286
                    android:text="Change Root Password" 
287
                    android:layout_width="130dip" 
288
                    android:layout_marginTop="10dip" 
289
                    android:layout_marginLeft="10dip" 
290
                    android:layout_gravity="left" 
291
                    android:layout_height="fill_parent" 
292
                    android:gravity="center">
293
            </Button>
294
             
295
    </LinearLayout>
296
    <LinearLayout android:layout_width="fill_parent" android:id="@+id/linearLayout1" android:orientation="horizontal" android:layout_marginTop="10dip" android:layout_height="fill_parent">
297
        <Button android:layout_width="130dip" android:layout_marginLeft="20dip" android:layout_gravity="left" android:text="Ping Server" android:layout_marginTop="10dip" android:id="@+id/view_server_ping_button" android:layout_height="wrap_content"></Button>
298
    </LinearLayout>
299

    
300

    
301
        </LinearLayout>
302
 </ScrollView>