Statistics
| Branch: | Revision:

root / res / layout / viewserver.xml @ 37a14877

History | View | Annotate | Download (9.9 kB)

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

    
9
<!-- 
10
Name
11
Flavor (256 Server)
12
Image (Ubuntu)
13
Memory
14
Disk
15
Status
16

17
Public IP Addresses
18

19
Private IP Addresses
20

21
Actions
22
-Reset Password
23
-Resize Server
24
-Delete Server
25

26
Soft Reboot / Hard Reboot
27
    android:layout_marginTop="-300dip"
28

29
 -->
30

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

    
39

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

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

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

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

    
286

    
287
        </LinearLayout>
288
 </ScrollView>