Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

rectangle on/off indicator

OP sleepingsword

31st January 2014, 01:11 PM   |  #1  
OP Member
Flag Oslo
Thanks Meter: 2
 
52 posts
Join Date:Joined: Mar 2011
More
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!
31st January 2014, 01:56 PM   |  #2  
kwerdenker's Avatar
Recognized Themer
Flag Probably the Zooper Forums
Thanks Meter: 2,394
 
1,421 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by sleepingsword

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.
The Following User Says Thank You to kwerdenker For This Useful Post: [ View ]
31st January 2014, 02:11 PM   |  #3  
OP Member
Flag Oslo
Thanks Meter: 2
 
52 posts
Join Date:Joined: Mar 2011
More
Perfect, just what I needed. Thanks kwerdenker.
31st January 2014, 02:28 PM   |  #4  
kwerdenker's Avatar
Recognized Themer
Flag Probably the Zooper Forums
Thanks Meter: 2,394
 
1,421 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Quote:
Originally Posted by sleepingsword

Perfect, just what I needed. Thanks kwerdenker.

Sure, no problem
1st February 2014, 09:27 PM   |  #5  
Junior Member
Thanks Meter: 0
 
14 posts
Join Date:Joined: Jan 2014
Happens to me as well and now I'm looking for the solution in a custom rom
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes