android_king22
android_king22

Reputation: 779

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 images are overlapping each other. How can i go about fixing this?

Upvotes: 3

Views: 1891

Answers (2)

Ramesh
Ramesh

Reputation: 1381

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.

Upvotes: 0

Austin Hanson
Austin Hanson

Reputation: 22040

Use the android:spacing attribute of the Gallery view.

Upvotes: 13

Related Questions