5,595,815 Members 35,166 Now Online
XDA Developers Android and Mobile Development Forum

rectangle on/off indicator

Tip us?
 
sleepingsword
Old
#1  
Member - OP
Thanks Meter 2
Posts: 52
Join Date: Mar 2011
Location: Oslo
Default rectangle on/off indicator

Can someone tell me how to make a rectangle indicator that shows the state of certain things.

For example, Red = off, Green = On

I want this for:

Wi-fi
Bluetooth
Cell Data
NFC
Charging

I think its possible but could not find a post that gives an example of the text/parameters.

Thanks in advance!
 
kwerdenker
Old
#2  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 1527
Posts: 1,227
Join Date: Apr 2010
Location: Probably the Zooper Forums
Quote:
Originally Posted by sleepingsword View Post
Can someone tell me how to make a rectangle indicator that shows the state of certain things.

For example, Red = off, Green = On

I want this for:

Wi-fi
Bluetooth
Cell Data
NFC
Charging

I think its possible but could not find a post that gives an example of the text/parameters.

Thanks in advance!
Only wifi, cell data and charging are possible without external tools. For the other ones you would need Tasker to send the values because Zooper has no internal variables for their states.

The general solution for this type of indicator would be to add a Rect module and then set an Advanced Parameter on it that changes the color depending on the state of whatever setting you want to have indicate by it. For the build-in variables you should check this page for their possible states and the associated meaning. As an example, here is the Advanced Parameter for a Rect module to indicate the state of wifi:
Code:
[c]$#NWSTATE#>=1?ff00ff00:ffff0000$[/c]
To understand the structure of these conditionals, please see this page.
Mobile: LG Nexus 4 | ROM: Paranoid Android 4.0 + Xposed | Kernel: faux Kernel
Tablet: Asus Nexus 7 (2013) | ROM: Paranoid Android 3+ | Kernel: faux Kernel


The Following User Says Thank You to kwerdenker For This Useful Post: [ Click to Expand ]
 
sleepingsword
Old
#3  
Member - OP
Thanks Meter 2
Posts: 52
Join Date: Mar 2011
Location: Oslo
Perfect, just what I needed. Thanks kwerdenker.
 
kwerdenker
Old
#4  
kwerdenker's Avatar
Recognized Themer
Thanks Meter 1527
Posts: 1,227
Join Date: Apr 2010
Location: Probably the Zooper Forums
Quote:
Originally Posted by sleepingsword View Post
Perfect, just what I needed. Thanks kwerdenker.
Sure, no problem
Mobile: LG Nexus 4 | ROM: Paranoid Android 4.0 + Xposed | Kernel: faux Kernel
Tablet: Asus Nexus 7 (2013) | ROM: Paranoid Android 3+ | Kernel: faux Kernel


 
pintitas
Old
#5  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Jan 2014
Happens to me as well and now I'm looking for the solution in a custom rom
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes