Customized Listbox on canvas – Now with graphics !
by Marcelo Barros
After the listbox on canvas with only texts, the next expected step is to add images support. Basic features remains the same, like variable number of lines per row, but now you can set a list of images to be loaded as well. Depending on its size, this loading may take a long time and sometimes we can not have memory enough to show some images since it is necessary to load and resize them. This is a known drawback and deserves some improvements. Small images, like screenshots, take less than one seconds to be loaded and resized to the desired size but large images, for instance 700kb, may take four seconds (each one) to be presented. You may avoid the resize phase just using pictures with size equal to that one used in the listbox.
I created an explorer like application, as a demo, and you can see it in action in the following video. Source code and installable sis are available as well (Python 1.4.5).
Related posts:
- Customized Listbox on canvas Special needs require special programs. I was needing a special...
- Creating a listbox on canvas for XM 5800 Since Python 1.9.4 does not have scrollbars in listbox yet,...
- Trend graphics on canvas Some months ago, before the cute Energy Profiler application, I...
- Sweet Memories v1.00 (touch game) Sweet Memories is a memory card game for touch screen...
- Creating a customized Ticker Component in Flash Lite The Ticker is essentially a scrolling text that can be...
Related posts brought to you by Yet Another Related Posts Plugin.
Ah, my photo is there in the Video 😀
Great template -Btw, there is a folder _PALBTN which contains auto-generated thumbnails, after they have been watched in the Gallery application.
How about similar catching the thumbnails for next usage – big image loads fast on the 2nd time! :->
Yes, that is the idea: thumbnails and do no wait until all images in the current screen load to show them. I mean, load and show until the current page finishes. If load method had a callback, like resize, i was possible to animate this waiting.
Ah, that folder is the cache folder for my twitter client. A nice way to show my friends 🙂
[…] use this component when programming for touch devices like XpressMusic 5800. I started to port my listbox on canvas for XM 5800, enabling applications like WordMobi that depends on this component. When scrollbars […]