Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,360 Members 53,789 Now Online
XDA Developers Android and Mobile Development Forum

Advanced Parameters Question How To?

Tip us?
 
ender87i
Old
#1  
Junior Member - OP
Thanks Meter 1
Posts: 16
Join Date: Mar 2014
Location: Portland
Default Advanced Parameters Question How To?

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
 
karanrajkapur
Old
#2  
karanrajkapur's Avatar
Senior Member
Thanks Meter 541
Posts: 818
Join Date: Dec 2012
Location: Chandigarh
Quote:
Originally Posted by ender87i View Post
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.
XPERIA Neo V || CyanogenMod10 || Fully Automated by Tasker || Zooper Widget Interactive UI
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes