Hi, in my android app i display 25 images using the background image of buttons, the problem is that my app performances are very slow, do you have some experiences with this?
I had a similar issue. I had no luck in solving it, but I did find that according to fastdev, every image is loading four times. I put up the ticket TC-1140 but it hasn't yet been updated. I'm not sure if it is loading four times or if it just fastdev being strange. Perhaps if it is fixed it might speed things up.
Why do you need 25 200 KB images in a single view? That's 5 MB of image data to deal with. I'm assuming that you're not showing them at full resolution on the screen. If you're not, then can you provide the images to your application at smaller sizes?
So you are putting all 25 200KB images on one view -- they're all descendants of the TableView. That's what I was asking. It would be one thing if you put a single 200KB image onto a view, then in another window, you display another 200KB view. But loading a TableView with 200KB images is a bad idea.
See this screenshot. I have a table with about 25 rows in it, each with a photo. The app performs very smoothly under iOS and android.
But my images are 160x120, which results in file sizes around 4-5 KB. Not 200 KB. All 25 of my images don't even match the size of one of your images. I don't know if these images are from your Resources directory, or if they're coming from a server, but you need to downsample your images before you give them to Titanium.
Think you can help? Login to answer this question!