So I want to make a dashboard view from text labels, and have managed to do that through
label.toImage() but if I set the
borderRadius there are no transparency in the blob. is there a workaround?
I have patched the TUIDashboardView.m so I can add on my dashboard dynamic created images (with rendered textlabels) and a pressed image....
Is someone intersted in that?
nvm,,, apparently I can just add a
DashboardItem and all good..
Appcelerator really should update their docs!
Hi, Good idea using the toImage on labels. I hadn't thought of that.
I've spent quite some time recently looking as using a dashboardView for a project I want to build, but the lack of dynamic labels is infuriating! I also found that using views/buttons/labels instead of the images in the documentation killed a lot of the events inside the items, so I was unable to even create up/down button 'states'.
Now you've inspired me to have a go at using toImage from a label. I'll see what I can come with to deal with the borderRadius/transparency.
Before I do that, how about trying the imageAsThumbnail() function, which has an option parameter for radius already in it? (Along with a border option and square size)
I find that if I add a label to a DashboardItem, I lose the image/selectedImage
have you managed to get around this somehow? care to share a snip of code? ;)
Think you can help? Login to answer this question!