Duplicate imageview without removeview?

dibb3386

Member
Licensed User
Longtime User
I am needing to display several images in a horizontal scrollview and I will need to display some of the same images in the same horizontal scrollview, maybe even more 5 or six time in some cases. Also this will be done several times so Dim -ing a new imageview for each time its required is not really the way i want to go about doing this.

I also wanted to do this without RemoveView as its possible that two or more of the images that are the same may be next to each other.

Thanks for any input
 

dibb3386

Member
Licensed User
Longtime User
You should create an ImageView for each image. You can however share the same bitmap between multiple ImageViews. Only the bitmap is a "heavy" object.

I have done this for each individual bitmap. Only I wanted to call the same imageview more than once in a horizontal scroll view to save on using multiple new imageviews for the same bitmap.

Not that much of a problem, just a bit more work to plow through, thanks anyways.
 
Upvote 0
Top