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

Advanced Parameters Question How To?

OP ender87i

28th March 2014, 09:19 AM   |  #1  
OP Junior Member
Flag Portland
Thanks Meter: 1
 
16 posts
Join Date:Joined: Mar 2014
More
How do I change the position of a module/item or item(s) within a widget, based on the day of the week? For example, something along the lines of this.. (can't remember exact variables so I'm just gonna use descriptions)
$#dayofweek#=Mon?Rect1positionChangesToXYandText2p ositionChangesToXW$

How do I do this correctly?
Thanks in advance!

-Ender


Sent from my SCH-I535
3rd April 2014, 12:56 PM   |  #2  
karanrajkapur's Avatar
Senior Member
Flag Chandigarh
Thanks Meter: 554
 
832 posts
Join Date:Joined: Dec 2012
More
Quote:
Originally Posted by ender87i

How do I change the position of a module/item or item(s) within a widget, based on the day of the week? For example, something along the lines of this.. (can't remember exact variables so I'm just gonna use descriptions)
$#dayofweek#=Mon?Rect1positionChangesToXYandText2p ositionChangesToXW$

How do I do this correctly?
Thanks in advance!

-Ender


Sent from my SCH-I535

You'll have to assign separate parameters for both the modules. Let's say text 1 & 2.

Supposing you want to move text 1 to the extreme right after 5pm, enter this into the advanced parameters:

[x]$#DHH#>17?90$[/x]

I've assumed that your system clock follows 24 hour format, hence 17 for 5pm. You could make it suit yourself.

It'd be the same for the second element. Just change the axis and the value (90) to locate the edge of your widget.

Enjoy.

sent from my BatPhone.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes