XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2018年 Jan 17日 21:51

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2014年 Sep 19日 14:35 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
The XW for android doesn't support java script. So, any ideas about how we can have the same results about the appearing of the days of the weeks, but without script?

Here is an example:
viewtopic.php?f=11&t=5046

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2014年 Sep 20日 00:02 
Offline

Joined: 2013年 Oct 26日 08:17
Posts: 362
we have talked about it before in here:
http://bbs.xwidget.com/viewtopic.php?f=8&t=4239

but maybe the things has get changed in newer version, so better to test them again


as a brief answer for this widget:

===============
1st method: using images (100% works)

1. use an image object for bg with white texts (you can also use 7 white text Objects)
2. create blue color images for each day and name them as days
3. use one of the binding tags that match the naming of your images


Note:
if it doesn't hide the previous day when a day has passed, you should also create empty images for other days (so finally you will have 7 blue images and 42 empty images),
you can change the date to check if it works correctly when changing days


===============
2nd method: using text objects
(it will work only if substitute works on text objects in android)

1. use an image object for bg with white texts (you can also use 7 white text Objects)
2. use text objects with blue color font for each day (7 text objects)
3. use one of the binding tags on text objects
4. use the substitute to change the text to the text you want (for each text object it should change text to make that day as it should be displayed and other days as empty)


Top
 Profile  
 
PostPosted: 2014年 Sep 20日 01:10 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
Yes, maybe with the latest version works.. I hope!
I need to test. Thanks for the suggestions hamid. :)

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2014年 Sep 20日 01:46 
Offline

Joined: 2013年 Oct 26日 08:17
Posts: 362
also as 3rd method: 7bg images
(works 100%)
1. create 7 bg images that for each of them one day is blue and others is white
2. use an image object
3. use one of the binding tags that match the naming of your images


i don't know which one is easier for you,
but i think filling white part of image with a color is easy


Top
 Profile  
 
PostPosted: 2014年 Sep 20日 01:54 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
Wow too much options! I will begin from the 3rd method.. I'll report the results soon..

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2014年 Sep 20日 02:16 
Offline

Joined: 2013年 Oct 26日 08:17
Posts: 362
want some more? :D
maybe a 4th method: using NumbImage Object

do you want to explain this as well?


Top
 Profile  
 
PostPosted: 2014年 Sep 20日 02:44 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
Hit me! :lol:

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2014年 Sep 20日 03:32 
Offline

Joined: 2013年 Oct 26日 08:17
Posts: 362
i have never used Numb Image,
and i just found that it's not as simple as i think ;)


edit:
i found another way,
but not the way as i thought first,

using NumbImage Object,
this is similar to other methods,
but maybe a little harder, since you need to add the empty parts into image
so doesn't need to explain ;)
the only advantage would be:
it doesn't need 42 empty images as 1st method needs


Last edited by hamid on 2014年 Sep 20日 04:57, edited 2 times in total.

Top
 Profile  
 
PostPosted: 2014年 Sep 20日 04:26 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
hamid wrote:
i have never used Numb Image,
and i just found that it's not as simple as i think ;)

That's ok man! 3 ways are already too much. I hope that one of them will work! :)

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group