How to control overlapping of gallery images?
I am downloading images from a URL and putting them into a gallery.
When the images are downloaded they are loaded correctly.
Once they are loaded from cache, the i开发者_JS百科mages are overlapping each other. How can i go about fixing this?
Use the android:spacing
attribute of the Gallery view.
In the adapter getView() set the imageView background to some color. It will automatically set the next gallery item with that background. But bcoz image is loaded after that your problem will be solved. Let me know if this doesnt work.
精彩评论