diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-02-10 21:55:46 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-02-10 21:55:46 +0100 |
commit | 2a9f7fcdb1ddf8c2ee39ed87334bf0bc58955808 (patch) | |
tree | f39f5812032d316e6530a1b143758088a39e7fbd /res/drawable | |
parent | dad578cff15e77be2f7e1ce6ff2b8dad4753da4d (diff) |
Use different icons in the status bar depending on status.
Diffstat (limited to 'res/drawable')
-rw-r--r-- | res/drawable/ic_notification_icon.xml | 13 | ||||
-rw-r--r-- | res/drawable/notification_icon.xml | 20 |
2 files changed, 11 insertions, 22 deletions
diff --git a/res/drawable/ic_notification_icon.xml b/res/drawable/ic_notification_icon.xml index db5e6e0f..852da869 100644 --- a/res/drawable/ic_notification_icon.xml +++ b/res/drawable/ic_notification_icon.xml @@ -1,5 +1,14 @@ <level-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- connected -->
<item android:maxLevel="0" android:drawable="@drawable/ic_stat_vpn" />
- <item android:maxLevel="1" android:drawable="@drawable/ic_stat_vpn" />
- <item android:maxLevel="2" android:drawable="@drawable/ic_stat_vpn" />
+ <!-- connecting, server reply -->
+ <item android:maxLevel="1" android:drawable="@drawable/ic_stat_vpn_more_halo" />
+ <!-- connecting, no server rply yet -->
+ <item android:maxLevel="2" android:drawable="@drawable/ic_stat_vpn_minimal_halo" />
+ <!-- no useable network -->
+ <item android:maxLevel="3" android:drawable="@drawable/ic_stat_vpn_offline" />
+ <!-- Authentication failed -->
+ <item android:maxLevel="4" android:drawable="@drawable/ic_stat_vpn_more_halo" />
+ <!-- client not running, not used -->
+ <item android:maxLevel="5" android:drawable="@drawable/ic_stat_vpn_offline" />
</level-list>
\ No newline at end of file diff --git a/res/drawable/notification_icon.xml b/res/drawable/notification_icon.xml deleted file mode 100644 index 6968e806..00000000 --- a/res/drawable/notification_icon.xml +++ /dev/null @@ -1,20 +0,0 @@ -<!-- - <string name="state_auth">Authenticating</string> - <string name="state_get_config">Getting client configuration</string> - <string name="state_assign_ip">Assigning IP addresses</string> - <string name="state_add_routes">Adding routes</string> - <string name="state_connected">Connected</string> - <string name="state_reconnecting">Reconnecting</string> - <string name="state_exiting">Exiting</string> - <string name="state_noprocess">Not running</string> - <string name="state_resolve">Resolving host names</string> - <string name="state_tcp_connect">Connecting (TCP)</string> - <string name="state_auth_failed">Authentication failed</string> - <string name="state_nonetwork">Waiting for usable network</string> - --> - - <level-list xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:maxLevel="0" android:drawable="@drawable/ic_stat_vpn" /> - <item android:maxLevel="1" android:drawable="@drawable/ic_stat_vpn" /> - <item android:maxLevel="2" android:drawable="@drawable/ic_stat_vpn" /> - </level-list>
\ No newline at end of file |