Revision eb3b3154

b/AndroidManifest.xml
6 6
	<application android:name="AndroidCloudApplication" android:icon="@drawable/rackspace60"
7 7
		android:label="@string/app_name">
8 8
		<activity android:name=".RackspaceCloudActivity"
9
			android:label="@string/app_name">
9
			android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
10 10
			<intent-filter>
11 11
				<action android:name="android.intent.action.MAIN" />
12 12
				<category android:name="android.intent.category.APPLICATION" />
......
20 20
			</intent-filter>
21 21
		</activity>
22 22

  
23
		<activity android:name=".ListServersActivity" android:label="@string/app_name">
23
		<activity android:name=".ListServersActivity" android:label="@string/app_name" 
24
		android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
24 25
			<intent-filter>
25 26
				<action android:name="android.intent.action.MAIN" />
26 27
				<category android:name="android.intent.category.APPLICATION" />
27 28
			</intent-filter>
28 29
		</activity>
29 30

  
30
		<activity android:name=".AddServerActivity" android:label="@string/app_name">
31
		<activity android:name=".AddServerActivity" android:label="@string/app_name"
32
		 android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
31 33
			<intent-filter>
32 34
				<action android:name="android.intent.action.MAIN" />
33 35
				<category android:name="android.intent.category.APPLICATION" />
34 36
			</intent-filter>
35 37
		</activity>
36
		<activity android:name=".AddContainerActivity" android:label="@string/app_name">
38
		<activity android:name=".AddContainerActivity" android:label="@string/app_name" 
39
		android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
37 40
			<intent-filter>
38 41
				<action android:name="android.intent.action.MAIN" />
39 42
				<category android:name="android.intent.category.APPLICATION" />
40 43
			</intent-filter>
41 44
		</activity>
42 45

  
43
		<activity android:name=".ViewServerActivity" android:label="@string/app_name">
46
		<activity android:name=".ViewServerActivity" android:label="@string/app_name" 
47
		android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
44 48
			<intent-filter>
45 49
				<action android:name="android.intent.action.MAIN" />
46 50
				<category android:name="android.intent.category.APPLICATION" />
47 51
			</intent-filter>
48 52
		</activity>
49
		<activity android:name=".ViewServerActivity" android:label="@string/app_name">
53
		<activity android:name=".ViewServerActivity" android:label="@string/app_name" 
54
		android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
50 55
			<intent-filter>
51 56
				<action android:name="android.intent.action.MAIN" />
52 57
				<category android:name="android.intent.category.APPLICATION" />
53 58
			</intent-filter>
54 59
		</activity>
55 60
		<activity android:name=".ContainerObjectsActivity"
56
			android:label="@string/app_name">
61
			android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
57 62
			<intent-filter>
58 63
				<action android:name="android.intent.action.MAIN" />
59 64
				<category android:name="android.intent.category.APPLICATION" />
60 65
			</intent-filter>
61 66
		</activity>
62 67
		<activity android:name=".ListContainerActivity"
63
			android:label="@string/app_name">
68
			android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
64 69
			<intent-filter>
65 70
				<action android:name="android.intent.action.MAIN" />
66 71
				<category android:name="android.intent.category.APPLICATION" />
67 72
			</intent-filter>
68 73
		</activity>
69 74
		<activity android:name=".ContainerObjectDetails"
70
			android:label="@string/app_name">
75
			android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
71 76
			<intent-filter>
72 77
				<action android:name="android.intent.action.MAIN" />
73 78
				<category android:name="android.intent.category.APPLICATION" />
74 79
			</intent-filter>
75 80
		</activity>
76 81

  
77
		<activity android:name=".EnableCDNActivity" android:label="@string/app_name">
82
		<activity android:name=".EnableCDNActivity" android:label="@string/app_name" 
83
		android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
78 84
			<intent-filter>
79 85
				<action android:name="android.intent.action.MAIN" />
80 86
				<category android:name="android.intent.category.APPLICATION" />
81 87
			</intent-filter>
82 88
		</activity>
83 89
		
84
		<activity android:name=".ActivityChooser" android:label="@string/app_name">
90
		<activity android:name=".ActivityChooser" android:label="@string/app_name" 
91
		android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
85 92
            <intent-filter>
86 93
                <action android:name="android.intent.action.MAIN"/>
87 94
                <category android:name="android.intent.category.APPLICATION"/>
88 95
            </intent-filter>
89 96
        </activity>
90
        <activity android:name=".LoadBalancersActivity" android:label="@string/app_name">
97
        <activity android:name=".LoadBalancersActivity" android:label="@string/app_name" 
98
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
91 99
            <intent-filter>
92 100
                <action android:name="android.intent.action.MAIN"/>
93 101
                <category android:name="android.intent.category.APPLICATION"/>
94 102
            </intent-filter>
95 103
        </activity>
96
        <activity android:name=".ListLoadBalancersActivity" android:label="@string/app_name">
104
        <activity android:name=".ListLoadBalancersActivity" android:label="@string/app_name" 
105
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
97 106
            <intent-filter>
98 107
                <action android:name="android.intent.action.MAIN"/>
99 108
                <category android:name="android.intent.category.APPLICATION"/>
100 109
            </intent-filter>
101 110
        </activity>
102
        <activity android:name=".LoadBalancersActivity" android:label="@string/app_name">
103
            <intent-filter>
104
                <action android:name="android.intent.action.MAIN"/>
105
                <category android:name="android.intent.category.APPLICATION"/>
106
            </intent-filter>
107
        </activity>
108
        <activity android:name=".ViewLoadBalancerActivity" android:label="@string/app_name">
111
        <activity android:name=".ViewLoadBalancerActivity" android:label="@string/app_name" 
112
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
109 113
            <intent-filter>
110 114
                <action android:name="android.intent.action.MAIN"/>
111 115
                <category android:name="android.intent.category.APPLICATION"/>
......
117 121
		<activity android:name=".BackupServerActivity"></activity>
118 122
		<activity android:name=".PasswordServerActivity"></activity>
119 123
		<activity android:name=".PingServerActivity"></activity>
120
		<activity android:name=".ListAccountsActivity">
124
		<activity android:name=".ListAccountsActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
121 125
			<intent-filter>
122 126
				<action android:name="android.intent.action.MAIN" />
123 127
				<category android:name="android.intent.category.LAUNCHER" />
124 128
			</intent-filter>
125 129
		</activity>
126 130

  
127
		<activity android:name=".AddAccountActivity"></activity>
128
		<activity android:name=".ContactActivity"></activity>
129
		<activity android:name=".CreatePasswordActivity"></activity>
130
		<activity android:name=".AddFileActivity"></activity>
131
		<activity android:name=".AddAccountActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></activity>
132
		<activity android:name=".ContactActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></activity>
133
		<activity android:name=".CreatePasswordActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></activity>
134
		<activity android:name=".AddFileActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"></activity>
131 135
		<activity android:name=".ServerErrorActivity" android:theme="@android:style/Theme.Dialog" android:noHistory="true"></activity>
132 136
		<activity android:name=".ErrorDetailsActivity"></activity>
133 137
		<activity android:name=".ConfirmResizeActivity" android:theme="@android:style/Theme.Dialog"></activity>
138
		
134 139

  
135 140

  
136 141
	</application>
b/android-rackspacecloud/META-INF/CERT.SF
1
Signature-Version: 1.0
2
Created-By: 1.0 (Android)
3
SHA1-Digest-Manifest: sdxX+gMS7WRVvv+3KmFtGxi/VTE=
4

  
5
Name: res/drawable/ukflag.png
6
SHA1-Digest: 3E0x3evibanGsv7YU74gw9TnkW4=
7

  
8
Name: res/layout/createserver.xml
9
SHA1-Digest: 7k+BnnjRS7GRegCS0C4pEZI54xU=
10

  
11
Name: res/layout/listservercell.xml
12
SHA1-Digest: aOWC4MMQfqVnhhuKaxWfB6wmsnw=
13

  
14
Name: res/layout/loadingcell.xml
15
SHA1-Digest: JP4SNH8o6zckaMMovWr4GgZZPRE=
16

  
17
Name: res/drawable/usflag.png
18
SHA1-Digest: DWzPzgG3vISqkfhTuDiZ00oISdg=
19

  
20
Name: res/drawable/alert_dialog_icon.png
21
SHA1-Digest: 41J0DLUHCJUXMV5a3Orw6Ca9uJU=
22

  
23
Name: res/drawable/windows_large.png
24
SHA1-Digest: tUYLek1IKuhU48LtAv65EQ2+Hvk=
25

  
26
Name: res/drawable/redhat_icon.png
27
SHA1-Digest: L142ksw0alzOgxJJ6No/B9FmEhs=
28

  
29
Name: res/drawable/centos_large.png
30
SHA1-Digest: BADXNrrskJB8ldD2VoVhRxtJx3o=
31

  
32
Name: resources.arsc
33
SHA1-Digest: C/SaCamLonVfzRzjmJ4JwCTRoWQ=
34

  
35
Name: res/menu/servers_list_menu.xml
36
SHA1-Digest: TmUhBnJ7eKoCRHOckilHvlcE2lk=
37

  
38
Name: AndroidManifest.xml
39
SHA1-Digest: V9HsnT5pSmBVWhdZTV1gFawtHM4=
40

  
41
Name: res/drawable-ldpi/icon.png
42
SHA1-Digest: Z/yxmMxGRNbFUkjqWONvJQH5rQw=
43

  
44
Name: res/layout/noserverscell.xml
45
SHA1-Digest: SwFgO4WZY/WZGIHpboldEjpA7uI=
46

  
47
Name: res/drawable/debian_icon.png
48
SHA1-Digest: VVIIcG8AKT35RmlU/LnroWPX+Pc=
49

  
50
Name: res/drawable/add_button.png
51
SHA1-Digest: 7seqzgLygIQjFuE1r5YHeanRgo0=
52

  
53
Name: res/drawable-mdpi/icon.png
54
SHA1-Digest: iR1AGdcgDutAX/5xyl92TWcEJuw=
55

  
56
Name: res/drawable/arch_large.png
57
SHA1-Digest: 4CiBObIW2b76tfqjwtg2kvP+ryc=
58

  
59
Name: res/layout/viewserver.xml
60
SHA1-Digest: V0dGbRe47n0CwLjXFvB0J9wlzx0=
61

  
62
Name: res/drawable/ubuntu_large.png
63
SHA1-Digest: ZCVASCEsnH6iMRciy2L9Z0/WAuQ=
64

  
65
Name: res/drawable/redhat_large.png
66
SHA1-Digest: z2+c0zEvQ3by/0IjlTzllIraVSE=
67

  
68
Name: res/drawable/cloudservers_large.png
69
SHA1-Digest: qkpDLua1+34LPl9qTX+ANHFc4bs=
70

  
71
Name: res/drawable/cloudservers_icon.png
72
SHA1-Digest: S9S3LqBRw6xXUjCzKB+QgzBZOtE=
73

  
74
Name: res/drawable/fedora_large.png
75
SHA1-Digest: uSllfeFWzOJOGVakMCLOR0gxSxA=
76

  
77
Name: res/drawable/debian_large.png
78
SHA1-Digest: zVGbBSS1jXLhQPAl/i+yelURs7Q=
79

  
80
Name: res/drawable/rackspace60.png
81
SHA1-Digest: umNMXjq32enJQ0yp1XBOzEbHnUE=
82

  
83
Name: res/drawable/gentoo_icon.png
84
SHA1-Digest: 4Z13MR9Ji0NGSeG93Yt7iBNxQBI=
85

  
86
Name: res/drawable/settings_button.png
87
SHA1-Digest: TUa954eKi10iniKFKjGTE9AH+4o=
88

  
89
Name: res/layout/listservers.xml
90
SHA1-Digest: I5bif3H45tT7hmHTrr1O+HiOUZY=
91

  
92
Name: res/drawable/refresh_button.png
93
SHA1-Digest: nR79nprlAZ/sFA+/rtT3qJowXjg=
94

  
95
Name: res/drawable/gentoo_large.png
96
SHA1-Digest: sdcMTy16KbH40LXa3bvIDx9irkw=
97

  
98
Name: classes.dex
99
SHA1-Digest: 4GEdgIcJUAFAGQ3KS6YS5luj52g=
100

  
101
Name: res/drawable/rackspacecloud.png
102
SHA1-Digest: GAD0nFhJa3RjeQmsfTSosdFVpjw=
103

  
104
Name: res/drawable/windows_icon.png
105
SHA1-Digest: h0T7UIzF0QjMFBlAlWp16pBjhk0=
106

  
107
Name: res/drawable/centos_icon.png
108
SHA1-Digest: cdi3XV/7q8q678SmRIeZRy+Nqc8=
109

  
110
Name: res/layout/main.xml
111
SHA1-Digest: bEycvUDDy0wHNybdTfmU8PhB/RU=
112

  
113
Name: res/layout/tabview.xml
114
SHA1-Digest: 3rLexCjSEWLJgk/Y1BUXf+pQp0M=
115

  
116
Name: res/drawable/arch_icon.png
117
SHA1-Digest: MSFgP5+ojSrH//2KE1+Eu2DQkys=
118

  
119
Name: res/drawable/ubuntu_icon.png
120
SHA1-Digest: E+FVi+Z6f7GhKjw1pQ6301wVTZw=
121

  
122
Name: res/drawable/cloudfiles.png
123
SHA1-Digest: VWTBSs97fLR4tOurfRdp860uvYs=
124

  
125
Name: res/drawable/fedora_icon.png
126
SHA1-Digest: nP2ezlSy10I9XEHJYb9/7SlyIak=
127

  
128
Name: res/drawable-hdpi/icon.png
129
SHA1-Digest: 3vv9derC/UrLpiam9i2Yo16eHXw=
130

  
b/android-rackspacecloud/META-INF/MANIFEST.MF
1
Manifest-Version: 1.0
2
Created-By: 1.0 (Android)
3

  
4
Name: res/layout/listservercell.xml
5
SHA1-Digest: gN5baqNv1/vflTulyADNLvXj4dM=
6

  
7
Name: res/layout/createserver.xml
8
SHA1-Digest: kEJKQZjyACmoPRgVIhR5Hw6gdLg=
9

  
10
Name: res/drawable/ukflag.png
11
SHA1-Digest: oIHY87/I/iwWRUZERbdMMXN0LiI=
12

  
13
Name: res/layout/loadingcell.xml
14
SHA1-Digest: EthUQvUg6GaE5iZ/ZumtuA5No00=
15

  
16
Name: res/drawable/usflag.png
17
SHA1-Digest: OWWIo4d3TRhyph7IW94FDP+scFE=
18

  
19
Name: res/drawable/alert_dialog_icon.png
20
SHA1-Digest: cAR6AyNxhSULWXZzFKYObPjRwB0=
21

  
22
Name: res/drawable/windows_large.png
23
SHA1-Digest: 2siFeykisaNr+ibhe/WQkkXPOlk=
24

  
25
Name: res/drawable/redhat_icon.png
26
SHA1-Digest: nZiU0yfNzYLgOZzV9tQXyqk1/3M=
27

  
28
Name: res/drawable/centos_large.png
29
SHA1-Digest: OUPEAuuU9A/Tvgkg8+8N1//R6ac=
30

  
31
Name: resources.arsc
32
SHA1-Digest: vomuBMuBt9hdVcoQ+d9hebVwKaQ=
33

  
34
Name: res/drawable-ldpi/icon.png
35
SHA1-Digest: i7vxaosoiS+9HzKB7ZgIsXMYRLY=
36

  
37
Name: AndroidManifest.xml
38
SHA1-Digest: Zk6ywEvzdHghHbx2Dj+hlaxlPxU=
39

  
40
Name: res/menu/servers_list_menu.xml
41
SHA1-Digest: d+DuJStswqEfyZ9zEO/PMx8dl5A=
42

  
43
Name: res/layout/noserverscell.xml
44
SHA1-Digest: LclcKpYVcEmrvTpqw4Arx3TB1UY=
45

  
46
Name: res/drawable/debian_icon.png
47
SHA1-Digest: 0kvGiyD/Ywt9HgwnN3STNu0AD7A=
48

  
49
Name: res/drawable/add_button.png
50
SHA1-Digest: rHpD5aI9h0iumTg+7k5QE7pC+ZI=
51

  
52
Name: res/drawable-mdpi/icon.png
53
SHA1-Digest: 7Ft/Rirt+l/JRX2KjDREScdbCZk=
54

  
55
Name: res/drawable/arch_large.png
56
SHA1-Digest: uHaNFDpV62p3SZDM6b8ax+9Tju4=
57

  
58
Name: res/layout/viewserver.xml
59
SHA1-Digest: uOLaQTNSp2wEjMy3W2+aQw4Ss2Y=
60

  
61
Name: res/drawable/ubuntu_large.png
62
SHA1-Digest: Uu15Nu7efy1ZLTuEwTQu02Zbs2A=
63

  
64
Name: res/drawable/redhat_large.png
65
SHA1-Digest: Ca90nAsAtYpbcWcYpKB6w7BGPcc=
66

  
67
Name: res/drawable/cloudservers_large.png
68
SHA1-Digest: h/HhI3GdNK+AJn5BQOxMRF3zguI=
69

  
70
Name: res/drawable/cloudservers_icon.png
71
SHA1-Digest: svNkSUUltstQ1Du+OrileR3pXY8=
72

  
73
Name: res/drawable/fedora_large.png
74
SHA1-Digest: dW3aBvvlgWaL/MYgNsxf0Se2xa8=
75

  
76
Name: res/drawable/debian_large.png
77
SHA1-Digest: b6SXPjx8OPYJhrpD23I2REbRa3Y=
78

  
79
Name: res/drawable/gentoo_icon.png
80
SHA1-Digest: thhFEEEh0fogrjg5qkjwoVIGMfo=
81

  
82
Name: res/drawable/rackspace60.png
83
SHA1-Digest: nHqkhRdbzHWlORiZnpb1ubzT/Yk=
84

  
85
Name: res/layout/listservers.xml
86
SHA1-Digest: gOth971RtL3v/wGxVIWRWXLf5eo=
87

  
88
Name: res/drawable/settings_button.png
89
SHA1-Digest: WbBtrtT3S3sA3uoTOpPeAine5Vw=
90

  
91
Name: res/drawable/refresh_button.png
92
SHA1-Digest: VLEX1uhZQd0g+9EKYxd8J3R4jsg=
93

  
94
Name: classes.dex
95
SHA1-Digest: /h7RSLk5lgssKyykQWsdmeKFzgM=
96

  
97
Name: res/drawable/gentoo_large.png
98
SHA1-Digest: NCWqTUtR5RG0YkgkkH8BdyN2wxo=
99

  
100
Name: res/drawable/windows_icon.png
101
SHA1-Digest: 3z96QRVqzHxRTrBKmR7S9KfWyuA=
102

  
103
Name: res/drawable/rackspacecloud.png
104
SHA1-Digest: hJBpHxksrLesjHug0Gx9yIzPSG0=
105

  
106
Name: res/drawable/centos_icon.png
107
SHA1-Digest: XOgOPtaZVLSTvvgcnsClBGHJICw=
108

  
109
Name: res/layout/main.xml
110
SHA1-Digest: sFgDfnoO20uv/vAppOfG3nscObE=
111

  
112
Name: res/layout/tabview.xml
113
SHA1-Digest: a61hRUsJZuvb2s0cxSRNVDxdU84=
114

  
115
Name: res/drawable/arch_icon.png
116
SHA1-Digest: vIkRsi8XlVkxe83a/tRls+n6qs0=
117

  
118
Name: res/drawable/ubuntu_icon.png
119
SHA1-Digest: QSLde7qc/PWzGIdN8sn8bfy9kvU=
120

  
121
Name: res/drawable/cloudfiles.png
122
SHA1-Digest: YqWF/hGZBs72PN7iTkwt922qZh8=
123

  
124
Name: res/drawable/fedora_icon.png
125
SHA1-Digest: cmbu4Uc38bgn/olNqpfH+tda55c=
126

  
127
Name: res/drawable-hdpi/icon.png
128
SHA1-Digest: Vj/qhxk8ic8FE0/kT6E3vgRJ4mE=
129

  
b/res/layout/activity_choser.xml
2 2
<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_height="fill_parent" android:layout_width="fill_parent" android:background="@drawable/rack_bg_main">
3 3
  <ImageView  android:id="@+id/headerimage" android:layout_width="wrap_content" android:layout_height="75dip"></ImageView>
4 4
     <LinearLayout android:layout_weight="1" android:layout_height="300dip" android:layout_width="fill_parent">
5
        <LinearLayout android:layout_weight="1" android:layout_height="fill_parent" android:layout_width="fill_parent">
5
        <LinearLayout android:layout_weight="1" android:layout_height="wrap_content" android:layout_width="wrap_content">
6 6
          <ImageButton android:layout_height="fill_parent"  android:src="@drawable/serverbuttonmed" android:id="@+id/serverbutton" android:background="@android:color/transparent" android:layout_width="fill_parent"></ImageButton>
7 7
        </LinearLayout>
8
        <LinearLayout android:layout_weight="1" android:layout_height="fill_parent" android:layout_width="fill_parent">
8
        <LinearLayout android:layout_weight="1" android:layout_height="wrap_content" android:layout_width="wrap_content">
9 9
           <ImageButton android:layout_height="fill_parent" android:src="@drawable/filebuttonmed" android:id="@+id/filesbutton" android:background="@android:color/transparent" android:layout_width="fill_parent"></ImageButton>        
10 10
        </LinearLayout>
11
        <LinearLayout android:layout_weight="1" android:layout_height="fill_parent" android:layout_width="fill_parent">
11
        <LinearLayout android:layout_weight="1" android:layout_height="wrap_content" android:layout_width="wrap_content">
12 12
           <ImageButton android:layout_height="fill_parent" android:src="@drawable/lbbuttonmed" android:id="@+id/loadbalancersbutton" android:background="@android:color/transparent" android:layout_width="fill_parent"></ImageButton>
13 13
        </LinearLayout>      
14 14
    </LinearLayout>
b/res/layout/list_containers.xml
2 2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
	android:orientation="vertical" android:layout_width="fill_parent"
4 4
	android:layout_height="fill_parent" android:background="@drawable/rack_bg_transparent">
5
	<ImageView android:id="@+id/headerimage"
5
	<ImageView android:id="@+id/containersheaderimage"
6 6
		android:layout_width="wrap_content" android:layout_height="80dip"></ImageView>
7
	<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
8
		android:layout_width="fill_parent" android:layout_height="fill_parent">
7
	<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
8
		android:orientation="vertical" android:layout_width="fill_parent"
9
		android:layout_height="fill_parent" android:layout_weight="1">
9 10
		<ListView android:id="@+id/android:list"
10 11
			android:layout_width="fill_parent" android:layout_height="fill_parent"
11 12
			android:cacheColorHint="@android:color/transparent" />
12
	</ScrollView>
13
	<ImageView android:id="@+id/headerimage"
13
	</LinearLayout>
14
	<ImageView android:id="@+id/containerfooterimage"
14 15
		android:layout_width="wrap_content" android:layout_height="25dip"></ImageView>
15 16
</LinearLayout>
16 17

  
b/res/layout/list_loadbalancer_item.xml
1 1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="64dip">
3
	<ImageView android:id="@+id/icon" android:layout_width="37px" android:paddingLeft="0px" android:paddingRight="0px" android:paddingTop="0px" android:layout_marginRight="10px" android:layout_marginLeft="10px" android:layout_marginTop="13px" android:layout_height="37px" android:src="@drawable/icon" />
4
	<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"	android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
	android:orientation="horizontal" android:layout_width="fill_parent"
4
	android:layout_height="64dip">
5
	<ImageView android:id="@+id/icon" android:layout_width="37px"
6
		android:paddingLeft="0px" android:paddingRight="0px"
7
		android:paddingTop="0px" android:layout_marginRight="10px"
8
		android:layout_marginLeft="10px" android:layout_marginTop="13px"
9
		android:layout_height="37px" android:src="@drawable/icon" />
10
	<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
11
		android:orientation="vertical" android:layout_width="fill_parent"
12
		android:layout_height="fill_parent">
5 13
		<TableRow>
6
			<TextView android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="5px" android:textColor="#000" android:textSize="24sp" />
14
			<TextView android:id="@+id/label" android:layout_width="wrap_content"
15
				android:layout_height="wrap_content" android:layout_marginTop="5px"
16
				android:textColor="#000" android:textSize="24sp" />
7 17
		</TableRow>
8 18
		<TableRow>
9
			<TextView android:id="@+id/sublabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0px" android:textColor="#000" android:text="MyLoadBalancers" android:textSize="12sp" />
19
			<TextView android:id="@+id/sublabel" android:layout_width="wrap_content"
20
				android:layout_height="wrap_content" android:layout_marginTop="0px"
21
				android:textColor="#000" android:text="MyLoadBalancers"
22
				android:textSize="12sp" />
10 23
		</TableRow>
11 24
	</TableLayout>
12 25
</LinearLayout>
b/res/layout/list_loadbalancers.xml
4 4
	android:layout_height="fill_parent" android:background="@drawable/rack_bg_transparent">
5 5
	<ImageView android:id="@+id/headerimage"
6 6
		android:layout_width="wrap_content" android:layout_height="80dip"></ImageView>
7
	<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
8
		android:layout_width="fill_parent" android:layout_height="fill_parent">
7
	<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
8
	android:orientation="vertical" android:layout_width="fill_parent"
9
	android:layout_height="fill_parent">
9 10
		<ListView android:id="@+id/android:list"
10 11
			android:layout_width="fill_parent" android:layout_height="fill_parent"
11 12
			android:cacheColorHint="@android:color/transparent" />
12
	</ScrollView>
13
	</LinearLayout>
13 14
	<ImageView android:id="@+id/headerimage"
14 15
		android:layout_width="wrap_content" android:layout_height="25dip"></ImageView>
15 16
</LinearLayout>
b/res/layout/list_servers.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
	android:orientation="vertical" android:layout_width="fill_parent"
4
	android:layout_height="fill_parent" android:background="@drawable/rack_bg_transparent">
5
	<ImageView android:id="@+id/headerimage"
6
		android:layout_width="wrap_content" android:layout_height="80dip"></ImageView>
7
	<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
8
		android:layout_width="fill_parent" android:layout_height="fill_parent">
9
		<ListView android:id="@+id/android:list"
10
			android:layout_width="fill_parent" android:layout_height="fill_parent"
11
			android:cacheColorHint="@android:color/transparent" />
12
	</ScrollView>
13
	<ImageView android:id="@+id/headerimage"
14
		android:layout_width="wrap_content" android:layout_height="25dip"></ImageView>
15
</LinearLayout>
16

  
17
  
b/res/layout/listcontainerscell.xml
1 1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
3
    android:orientation="horizontal"
4
    android:layout_width="fill_parent"
5
    android:layout_height="64dip"
6
    >
7
        
8
    <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
9
        android:orientation="vertical"
10
        android:layout_width="fill_parent"
11
        android:layout_height="fill_parent">
12
    
13
        <TableRow>
14
		    <TextView android:id="@+id/label"
15
		        android:layout_width="wrap_content"
16
		        android:layout_height="wrap_content"
17
		        android:layout_marginTop="5px"
18
		        android:textColor="#FFFFFF"
19
		        android:textSize="24sp" />
20
        </TableRow>
21
        
22
        <TableRow>
23
		    <TextView android:id="@+id/sublabel"
24
		        android:layout_width="wrap_content"
25
		        android:layout_height="wrap_content"
26
		        android:layout_marginTop="0px"
27
		        android:textColor="#FFFFFF"
28
		        android:text="256 server - CentOS 5.3"
29
		        android:textSize="12sp" />
30
        </TableRow>
31
    </TableLayout>
32
        
33
        
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
	android:orientation="horizontal" android:layout_width="fill_parent"
4
	android:layout_height="64dip">
5
	<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
6
		android:orientation="vertical" android:layout_width="fill_parent"
7
		android:layout_height="fill_parent">
8

  
9
		<TableRow>
10
			<TextView android:id="@+id/label" android:layout_width="wrap_content"
11
				android:layout_height="wrap_content" android:layout_marginTop="5px"
12
				android:textColor="#000" android:textSize="24sp" />
13
		</TableRow>
14

  
15
		<TableRow>
16
			<TextView android:id="@+id/sublabel" android:layout_width="wrap_content"
17
				android:layout_height="wrap_content" android:layout_marginTop="0px"
18
				android:textColor="#000" android:text="Containers"
19
				android:textSize="12sp" />
20
		</TableRow>
21
	</TableLayout>
34 22
</LinearLayout>
b/res/layout/listservers.xml
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:orientation="vertical"
4
    android:layout_width="fill_parent"
5
    android:layout_height="fill_parent"
6
    >
7
	<ListView android:id="@+id/list" xmlns:android="http://schemas.android.com/apk/res/android"
8
	    android:layout_width="fill_parent" 
9
	    android:layout_height="0dip"
10
	    android:layout_weight="1"
11
	    android:stackFromBottom="true"
12
	    android:transcriptMode="normal"
13
	/>
3
	android:orientation="vertical" android:layout_width="fill_parent"
4
	android:layout_height="fill_parent" android:background="@drawable/rack_bg_transparent">
5
	<ImageView android:id="@+id/headerimage"
6
		android:layout_width="wrap_content" android:layout_height="80dip"></ImageView>
7
	<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
8
		android:layout_width="fill_parent" android:layout_height="fill_parent">
9
		<ListView android:id="@+id/android:list"
10
			android:layout_width="fill_parent" android:layout_height="fill_parent"
11
			android:cacheColorHint="@android:color/transparent" />
12
	</ScrollView>
13
	<ImageView android:id="@+id/headerimage"
14
		android:layout_width="wrap_content" android:layout_height="25dip"></ImageView>
14 15
</LinearLayout>
b/res/layout/view_loadbalancer.xml
28 28
					<TextView android:layout_width="wrap_content"
29 29
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
30 30
						android:paddingLeft="5dip" android:text="ID: " android:singleLine="false"
31
						android:textStyle="bold" />
31
						android:textStyle="bold" android:textColor="#333"/>
32 32
					<TextView android:id="@+id/view_lb_id"
33 33
						android:layout_height="wrap_content" android:layout_width="fill_parent"
34 34
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
41 41
					<TextView android:layout_width="wrap_content"
42 42
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
43 43
						android:paddingLeft="5dip" android:text="ID: " android:singleLine="false"
44
						android:textStyle="bold" />
44
						android:textStyle="bold" android:textColor="#333"/>
45 45
					<TextView android:id="@+id/view_name"
46 46
						android:layout_height="wrap_content" android:layout_width="fill_parent"
47 47
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
54 54
					<TextView android:layout_width="wrap_content"
55 55
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
56 56
						android:paddingLeft="5dip" android:text="Protocol: "
57
						android:singleLine="false" android:textStyle="bold" />
57
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
58 58
					<TextView android:id="@+id/view_protocol"
59 59
						android:layout_height="wrap_content" android:layout_width="fill_parent"
60 60
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
67 67
					<TextView android:layout_width="wrap_content"
68 68
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
69 69
						android:paddingLeft="5dip" android:text="Port: "
70
						android:singleLine="false" android:textStyle="bold" />
70
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
71 71
					<TextView android:id="@+id/view_port"
72 72
						android:layout_height="wrap_content" android:layout_width="fill_parent"
73 73
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
80 80
					<TextView android:layout_width="wrap_content"
81 81
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
82 82
						android:paddingLeft="5dip" android:text="Algorithm: "
83
						android:singleLine="false" android:textStyle="bold" />
83
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
84 84
					<TextView android:id="@+id/view_algorithm"
85 85
						android:layout_height="wrap_content" android:layout_width="fill_parent"
86 86
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
93 93
					<TextView android:layout_width="wrap_content"
94 94
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
95 95
						android:paddingLeft="5dip" android:text="Status: "
96
						android:singleLine="false" android:textStyle="bold" />
96
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
97 97
					<TextView android:id="@+id/view_status"
98 98
						android:layout_height="wrap_content" android:layout_width="fill_parent"
99 99
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
106 106
					<TextView android:layout_width="wrap_content"
107 107
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
108 108
						android:paddingLeft="5dip" android:text="Connection Logging: "
109
						android:singleLine="false" android:textStyle="bold" />
109
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
110 110
					<TextView android:id="@+id/view_islogging"
111 111
						android:layout_height="wrap_content" android:layout_width="fill_parent"
112 112
						android:layout_marginRight="30dip" android:paddingBottom="30dip"
......
132 132
					<TextView android:layout_width="wrap_content"
133 133
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
134 134
						android:paddingLeft="5dip" android:text="ID: " android:singleLine="false"
135
						android:textStyle="bold" />
135
						android:textStyle="bold" android:textColor="#333"/>
136 136
					<TextView android:id="@+id/view_vip_id"
137 137
						android:layout_height="wrap_content" android:layout_width="fill_parent"
138 138
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
145 145
					<TextView android:layout_width="wrap_content"
146 146
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
147 147
						android:paddingLeft="5dip" android:text="IpAddress: "
148
						android:singleLine="false" android:textStyle="bold" />
148
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
149 149
					<TextView android:id="@+id/view_vip_address"
150 150
						android:layout_height="wrap_content" android:layout_width="fill_parent"
151 151
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
158 158
					<TextView android:layout_width="wrap_content"
159 159
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
160 160
						android:paddingLeft="5dip" android:text="IpVersion: "
161
						android:singleLine="false" android:textStyle="bold" />
161
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
162 162
					<TextView android:id="@+id/view_ipversion"
163 163
						android:layout_height="wrap_content" android:layout_width="fill_parent"
164 164
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
171 171
					<TextView android:layout_width="wrap_content"
172 172
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
173 173
						android:paddingLeft="5dip" android:text="Type: "
174
						android:singleLine="false" android:textStyle="bold" />
174
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
175 175
					<TextView android:id="@+id/view_vip_type"
176 176
						android:layout_height="wrap_content" android:layout_width="fill_parent"
177 177
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
188 188
					android:layout_marginRight="30dip" android:scrollHorizontally="true"
189 189
					android:gravity="fill_horizontal" android:textSize="20.0sp"
190 190
					android:textColor="#fff" android:layout_marginTop="30dip"
191
					android:paddingBottom="10dip" android:text="Nodes" />
191
					android:paddingBottom="10dip" android:text="Nodes"/>
192 192
				<!-- ID -->
193 193
				<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
194 194
					android:id="@+id/view_node_id_layout" android:orientation="horizontal"
......
196 196
					<TextView android:layout_width="wrap_content"
197 197
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
198 198
						android:paddingLeft="5dip" android:text="ID: " android:singleLine="false"
199
						android:textStyle="bold" />
199
						android:textStyle="bold" android:textColor="#333" />
200 200
					<TextView android:id="@+id/view_node_id"
201 201
						android:layout_height="wrap_content" android:layout_width="fill_parent"
202 202
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
209 209
					<TextView android:layout_width="wrap_content"
210 210
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
211 211
						android:paddingLeft="5dip" android:text="Address: "
212
						android:singleLine="false" android:textStyle="bold" />
212
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
213 213
					<TextView android:id="@+id/view_node_address"
214 214
						android:layout_height="wrap_content" android:layout_width="fill_parent"
215 215
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
222 222
					<TextView android:layout_width="wrap_content"
223 223
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
224 224
						android:paddingLeft="5dip" android:text="Port: "
225
						android:singleLine="false" android:textStyle="bold" />
225
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
226 226
					<TextView android:id="@+id/view_node_port"
227 227
						android:layout_height="wrap_content" android:layout_width="fill_parent"
228 228
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
235 235
					<TextView android:layout_width="wrap_content"
236 236
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
237 237
						android:paddingLeft="5dip" android:text="Condition: "
238
						android:singleLine="false" android:textStyle="bold" />
238
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
239 239
					<TextView android:id="@+id/view_node_condition"
240 240
						android:layout_height="wrap_content" android:layout_width="fill_parent"
241 241
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
......
248 248
					<TextView android:layout_width="wrap_content"
249 249
						android:layout_height="wrap_content" android:layout_marginLeft="22dip"
250 250
						android:paddingLeft="5dip" android:text="Status: "
251
						android:singleLine="false" android:textStyle="bold" />
251
						android:singleLine="false" android:textStyle="bold" android:textColor="#333"/>
252 252
					<TextView android:id="@+id/view_node_status"
253 253
						android:layout_height="wrap_content" android:layout_width="fill_parent"
254 254
						android:layout_marginRight="30dip" android:scrollHorizontally="true"
b/src/com/rackspacecloud/android/ActivityChooser.java
35 35
		setContentView(R.layout.activity_choser);
36 36
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
37 37

  
38
		context = this;
38
		context = getApplicationContext();
39 39
		// Set up buttons
40
		ImageButton button1 = (ImageButton) findViewById(R.id.serverbutton);
41
		ImageButton button2 = (ImageButton) findViewById(R.id.filesbutton);
42
		ImageButton button3 = (ImageButton) findViewById(R.id.loadbalancersbutton);
40
		ImageButton serversButton = (ImageButton) findViewById(R.id.serverbutton);
41
		ImageButton filesButton = (ImageButton) findViewById(R.id.filesbutton);
42
		ImageButton loadBalancersButton = (ImageButton) findViewById(R.id.loadbalancersbutton);
43 43
		
44
		button1.setOnClickListener(myListener);
45
		button2.setOnClickListener(myListener);
46
		button3.setOnClickListener(myListener);
44
		serversButton.setOnClickListener(myListener);
45
		filesButton.setOnClickListener(myListener);
46
		loadBalancersButton.setOnClickListener(myListener);
47 47
	}
48 48

  
49 49
	View.OnClickListener myListener = new View.OnClickListener() {
......
52 52
			case R.id.serverbutton:
53 53
				Intent loadServersActivityIntent = new Intent(context, ListServersActivity.class);
54 54
				startActivity(loadServersActivityIntent);
55
				break;
55 56
			case R.id.filesbutton:
56 57
				Intent loadFilesActivityIntent = new Intent(context, ListContainerActivity.class);
57 58
				startActivity(loadFilesActivityIntent);
59
				break;
58 60
			case R.id.loadbalancersbutton:
59
				Intent loadBalancersActivityIntent = new Intent(context, LoadBalancersActivity.class);
61
				Intent loadBalancersActivityIntent = new Intent(context, ListLoadBalancersActivity.class);
60 62
				startActivity(loadBalancersActivityIntent);
63
				break;
61 64
			default:
62
				// Nothing
63 65
				break;
64 66
			}
65 67
		}
66 68
	};
67
	
68
	protected void showDialog() {
69
    	pDialog = new ProgressDialog(context, R.style.NewDialog);
70
//		// Set blur to background
71
		WindowManager.LayoutParams lp = pDialog.getWindow().getAttributes();
72
		lp.dimAmount = 0.0f;
73
		pDialog.getWindow().setAttributes(lp);
74
		pDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
75
        pDialog.show();
76
        pDialog.setContentView(new ProgressBar(context), new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));    
77
    }
78 69
}
b/src/com/rackspacecloud/android/ListContainerActivity.java
28 28
import com.rackspace.cloud.files.api.client.ContainerManager;
29 29
import com.rackspace.cloud.servers.api.client.CloudServersException;
30 30

  
31
/**
32
 * 
33
 * @author Phillip Toohill
34
 * 
35
 */
36 31
public class ListContainerActivity extends ListActivity {
37 32

  
38 33
	protected static final int DELETE_ID = 0;
......
88 83
	}
89 84

  
90 85
	private void loadContainers() {
91
		showProgressDialog();
86
//		displayNoContainersCell();
92 87
		new LoadContainersTask().execute((Void[]) null);
93 88
	}
94 89

  
......
160 155

  
161 156
		@Override
162 157
		protected void onPreExecute(){
158
			showProgressDialog();
163 159
			loading = true;
164 160
		}
165 161
			
166 162
		@Override
167 163
		protected ArrayList<Container> doInBackground(Void... arg0) {
168 164
			ArrayList<Container> containers = null;
169

  
170 165
			try {
171 166
				containers = (new ContainerManager(context)).createList(true);
172 167
			} catch (CloudServersException e) {
173 168
				exception = e;
174 169
			}
170
			pDialog.dismiss();   
175 171
			return containers;
176 172
		}
177 173

  
......
190 186
					containerNames[i] = container.getName();
191 187
				}
192 188
			}
189
			pDialog.dismiss();
193 190
			loading = false;
194 191
			new LoadCDNContainersTask().execute((Void[]) null);
195 192
		}
......
209 206
		@Override
210 207
		protected ArrayList<Container> doInBackground(Void... arg0) {
211 208
			ArrayList<Container> cdnContainers = null;
212

  
213 209
			try {
214 210
				cdnContainers = (new ContainerManager(context)).createCDNList(true);
215 211
			} catch (CloudServersException e) {
216 212
				exception = e;
217 213
			}
214
			pDialog.dismiss();
218 215
			return cdnContainers;
219 216
		}
220 217

  
221 218
		@Override
222 219
		protected void onPostExecute(ArrayList<Container> result) {
223 220
			Log.v("listcontainerActivity", "onPostExecute loadCDNcontainerTask");
224
			pDialog.dismiss();
225 221
			if (exception != null) {
226 222
				showAlert("Error", exception.getMessage());
227 223
			}
......
239 235
					}
240 236
				}
241 237
			}
238
			pDialog.dismiss();
242 239
			setContainerList();
243 240
			loading = false;
244 241
		}
b/src/com/rackspacecloud/android/ListLoadBalancersActivity.java
32 32
	public void onCreate(Bundle savedInstanceState) {
33 33
		super.onCreate(savedInstanceState);
34 34
		setContentView(R.layout.list_loadbalancers);
35
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
36
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
37 35
		restoreState(savedInstanceState);
38 36
	}
39 37

  
......
178 176
		}
179 177

  
180 178
		public View getView(int position, View convertView, ViewGroup parent) {
181
			Log.i("LISTLOADBALANCERS: ", loadBalancers[position].getAlgorithm()
182
					+ "," + loadBalancers[position].getProtocol() + ","
183
					+ loadBalancers[position].getStatus() +"vips: "+ loadBalancers[position].getVirtualIps().toString());
184

  
185 179
			LoadBalancer loadBalancer = loadBalancers[position];
186 180
			LayoutInflater inflater = getLayoutInflater();
187 181
			View row = inflater.inflate(R.layout.list_loadbalancer_item,
b/src/com/rackspacecloud/android/ListServersActivity.java
7 7

  
8 8
import android.app.AlertDialog;
9 9
import android.app.ListActivity;
10
import android.app.ProgressDialog;
10 11
import android.content.Context;
11 12
import android.content.DialogInterface;
12 13
import android.content.Intent;
......
18 19
import android.view.MenuItem;
19 20
import android.view.View;
20 21
import android.view.ViewGroup;
22
import android.view.WindowManager;
23
import android.view.ViewGroup.LayoutParams;
21 24
import android.widget.ArrayAdapter;
22 25
import android.widget.ImageView;
23 26
import android.widget.ListView;
27
import android.widget.ProgressBar;
24 28
import android.widget.TextView;
25 29

  
26 30
import com.rackspace.cloud.servers.api.client.CloudServersException;
......
35 39

  
36 40
	private Server[] servers;
37 41
	private Context context;
42
	ProgressDialog pDialog;
38 43
	
39 44
	@Override
40 45
    public void onCreate(Bundle savedInstanceState) {
41 46
        super.onCreate(savedInstanceState);
42 47
        context = getApplicationContext();
48
        setContentView(R.layout.list_servers);
43 49
        restoreState(savedInstanceState);
44 50
    }
45 51
	
......
72 78
    }
73 79
    
74 80
    private void loadServers() {
75
    	displayLoadingCell();
81
//    	displayLoadingCell();
76 82
    	new LoadServersTask().execute((Void[]) null);
77 83
    }
78 84
    
......
99 105
		}
100 106
    }
101 107
    
102
    private void displayLoadingCell() {
103
    	String a[] = new String[1];
104
    	a[0] = "Loading...";
105
        setListAdapter(new ArrayAdapter<String>(this, R.layout.loadingcell, R.id.loading_label, a));
106
        getListView().setTextFilterEnabled(true);
107
        getListView().setDividerHeight(0); // hide the dividers so it won't look like a list row
108
        getListView().setItemsCanFocus(false);
109
    }
108
//    private void displayLoadingCell() {
109
//    	String a[] = new String[1];
110
//    	a[0] = "Loading...";
111
//        setListAdapter(new ArrayAdapter<String>(this, R.layout.loadingcell, R.id.loading_label, a));
112
//        getListView().setTextFilterEnabled(true);
113
//        getListView().setDividerHeight(0); // hide the dividers so it won't look like a list row
114
//        getListView().setItemsCanFocus(false);
115
//    }
116
    
117
    protected void showProgressDialog() {
118
		pDialog = new ProgressDialog(this, R.style.NewDialog);
119
		// // Set blur to background
120
		WindowManager.LayoutParams lp = pDialog.getWindow().getAttributes();
121
		lp.dimAmount = 0.0f;
122
		pDialog.getWindow().setAttributes(lp);
123
		pDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
124
		pDialog.show();
125
		pDialog.setContentView(new ProgressBar(this), new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
126
	}
110 127
    
111 128
    private void displayNoServersCell() {
112 129
    	String a[] = new String[1];
......
136 153
    
137 154
    
138 155
    private class LoadServersTask extends AsyncTask<Void, Void, ArrayList<Server>> {
139
    	
140 156
    	private CloudServersException exception;
141 157
    	
158
    	@Override
159
		protected void onPreExecute(){
160
			showProgressDialog();
161
		}
162
    	
142 163
		@Override
143 164
		protected ArrayList<Server> doInBackground(Void... arg0) {
144 165
			ArrayList<Server> servers = null;
......
147 168
			} catch (CloudServersException e) {
148 169
				exception = e;				
149 170
			}
171
			pDialog.dismiss();
150 172
			return servers;
151 173
		}
152 174
    	
b/src/com/rackspacecloud/android/LoadBalancersActivity.java
17 17
	public void onCreate(Bundle savedInstanceState) {
18 18
		super.onCreate(savedInstanceState);
19 19
		setContentView(R.layout.loadbalancers_activity);
20
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
21 20
		
22 21
		// Set up buttons
23 22
        //Others will be other options
......
34 33
		public void onClick(View v) {
35 34
			switch (v.getId()) {
36 35
			case R.id.lbbuttonmed:
37
				Intent listLoadBalancersIntent = new Intent(LoadBalancersActivity.this, ListLoadBalancersActivity.class);
36
				Intent listLoadBalancersIntent = new Intent(getApplicationContext(), ListLoadBalancersActivity.class);
38 37
				startActivity(listLoadBalancersIntent);
39 38
			case R.id.filesbutton:
40 39
				//add for configuration i.e default datacenter, other info.

Also available in: Unified diff