Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,214 Members 43,526 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Day of week (number) problem

Tip us?
 
Jangla
Old
#1  
Junior Member - OP
Thanks Meter 5
Posts: 17
Join Date: Oct 2008
Default [Q] Day of week (number) problem

I'm trying to create a super simple little calendar widget but for some reason, Day of Week in Week (number) always outputs 0. Is this a bug or am I missing something? I'm trying to use it in a progress bar.
 
Jangla
Old
#2  
Junior Member - OP
Thanks Meter 5
Posts: 17
Join Date: Oct 2008
Thought it might help to show people what I mean.

One screenshot shows widget on desktop. Other one shows settings for the day of week in week. Note that on the desktop screenshot, the 3rd ring from the centre is the one that's not working.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-03-10-09-39-02.png
Views:	40
Size:	203.2 KB
ID:	2623087   Click image for larger version

Name:	Screen Shot 2014-03-10 at 10.50.48.png
Views:	42
Size:	93.2 KB
ID:	2623090  
 
ma11en
Old
#3  
ma11en's Avatar
Senior Member
Thanks Meter 50
Posts: 103
Join Date: Jun 2012
Location: Nottingham
Hi,

Have you double checked that your foreground colour isn't the same as the background colour?

Regards Mark.

Sent from my One X using Tapatalk
 
Jangla
Old
#4  
Junior Member - OP
Thanks Meter 5
Posts: 17
Join Date: Oct 2008
Quote:
Originally Posted by ma11en View Post
Hi,

Have you double checked that your foreground colour isn't the same as the background colour?

Regards Mark.

Sent from my One X using Tapatalk
Yup. Just this minute solved it though - should have been using 0 as a start rather than 1.....which I don't really understand but at least it's running now.

Got some more tweaks to make and then I'm going to have a crack at releasing this on the play store
The Following User Says Thank You to Jangla For This Useful Post: [ Click to Expand ]
Tags
date
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes