Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

loading image performance

$
0
0

hi

i want to display loading (spinning, throbber) image while am i loading remote image. everything is fine, i got this working, but i found different ways how to do this and i would like to know, which one is the best in terms of performance. imagine that i got big table with plenty of images (f.e. 100+) and each row is loading remote image, so each row displays loading image first.

my questions:

about the image:

  1. use imageView with array of images, OR

  2. use 1 image and rotate it in the code

can i reuse one imageView multiple times (the same imageView on each row) ?

about hiding loading image:

  1. hide loading image and show remote image (keep 2 imageView for each row), OR

  2. remove hiding image from the view when remote image is loaded, OR

  3. replace loaded remote image in the loading imageView (i didn't found the way how to do this)

my working code: https://gist.github.com/824350

thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>