开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜