Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,771,878 Members 37,093 Now Online
XDA Developers Android and Mobile Development Forum

Can't figure out analog hands.

Tip us?
 
VItimmy
Old
(Last edited by VItimmy; 7th June 2014 at 06:25 PM.)
#1  
Member - OP
Thanks Meter 2
Posts: 31
Join Date: Aug 2011
Default Can't figure out analog hands.

I have 3 analog hands I can't figure out 1 for the 7 days of the week 1 for months and 1 for day in the month. It's a 360 circle the days months and week I want an analog hand to spin for each 1.

 
ma11en
Old
#2  
ma11en's Avatar
Senior Member
Thanks Meter 50
Posts: 103
Join Date: Jun 2012
Location: Nottingham
Quote:
Originally Posted by VItimmy View Post
I have 3 analog hands I can't figure out 1 for the 7 days of the week 1 for months and 1 for day in the month. It's a 360 circle the days months and week I want an analog hand to spin for each 1.

Hi,

Try this for day of the week;

[as]$(360/7*#df#)$[/as]
[ar]35[/ar]
[r]$(360/7*#df#)$[/r]

this for day of month;

[as]$(360/31*#dd#)$[/as]
[ar]35[/ar]
[r]$(360/31*#dd#)$[/r]

this for month;

[as]$(360/12*#dMM#)$[/as]
[ar]35[/ar]
[r]$(360/12*#dMM#)$[/r]

You will probably want to change the number in [ar] as this will be related to the arm length and pivot point.


Sent from my SM-N9005 using Tapatalk
The Following User Says Thank You to ma11en For This Useful Post: [ Click to Expand ]
 
VItimmy
Old
#3  
Member - OP
Thanks Meter 2
Posts: 31
Join Date: Aug 2011
Quote:
Originally Posted by ma11en View Post
Hi,

Try this for day of the week;

[as]$(360/7*#df#)$[/as]
[ar]35[/ar]
[r]$(360/7*#df#)$[/r]

this for day of month;

[as]$(360/31*#dd#)$[/as]
[ar]35[/ar]
[r]$(360/31*#dd#)$[/r]

this for month;

[as]$(360/12*#dMM#)$[/as]
[ar]35[/ar]
[r]$(360/12*#dMM#)$[/r]

You will probably want to change the number in [ar] as this will be related to the arm length and pivot point.


Sent from my SM-N9005 using Tapatalk
Thanks a million I've spent months trying to get that to work. I have one more question then is it possible to have a seconds hand I wasn't sure haven't seen anyone else have one so never bothered but would be cool if it was.
The Following User Says Thank You to VItimmy For This Useful Post: [ Click to Expand ]
 
CopKiller76
Old
#4  
Senior Member
Thanks Meter 68
Posts: 119
Join Date: Jan 2014
Location: Bornheim
I think updating every second would drain battery to fast, this could be zooper doesnt support it.

Gesendet von meinem GT-I9505 mit Tapatalk
The Following User Says Thank You to CopKiller76 For This Useful Post: [ Click to Expand ]
 
ma11en
Old
#5  
ma11en's Avatar
Senior Member
Thanks Meter 50
Posts: 103
Join Date: Jun 2012
Location: Nottingham
Quote:
Originally Posted by VItimmy View Post
Thanks a million I've spent months trying to get that to work. I have one more question then is it possible to have a seconds hand I wasn't sure haven't seen anyone else have one so never bothered but would be cool if it was.
No worries, you're welcome.

Please hit the Thanks button if I've helped.

Sent from my SM-N9005 using Tapatalk
The Following User Says Thank You to ma11en For This Useful Post: [ Click to Expand ]
 
VItimmy
Old
#6  
Member - OP
Thanks Meter 2
Posts: 31
Join Date: Aug 2011
Quote:
Originally Posted by CopKiller76 View Post
I think updating every second would drain battery to fast, this could be zooper doesnt support it.

Gesendet von meinem GT-I9505 mit Tapatalk
Ok makes sense I thought it might
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes