Sub Button1_Click
For i = 0 To 100
Dim zufall As Int = Rnd(0, flist.Size)
'Log(flist.Get(zufall))
Dim img As ImageView
img.Initialize("iv")
Dim posx As Int = Rnd(0,100%x-100dip)
Dim posy As Int = Rnd(0,100%y-100dip)
Activity.AddView(img,posx,posy,100dip,100dip)
il.loadImg("http://snapshots.basic4android.de/"&flist.Get(zufall),img)
Next
End Sub
il is of type uil. uil is an Acronym for UniversalImageLoader. uil is not released actually.
the uilobject (the wrapper) just call loadImg with the url and the reference to the imageview. Rest is done by the native jar
'Acceptable URIs examples
'"http://site.com/image.png" // from Web
'"file:///mnt/sdcard/image.png" // from SD card
'"file:///mnt/sdcard/video.mp4" // from SD card (video thumbnail)
'"content://media/external/images/media/13" // from content provider
'"content://media/external/video/media/13" // from content provider (video thumbnail)
'"assets://image.png" // from assets
I have a scrollview. On it, I add panels at runtime and initialize canvases to it. On those canvases I use ONE Bitmap for all images and draw with it on them.
no, I think that Erel meant that it's better in that example to just copy it to the canvas.
indeed, as long as they don't need to be clickable or movable you could just copy it to 1 canvas as the memory size of that won't change
if you copy 1 or 5738 images to it.