开发者

ListView with embed Gallery, data set to the wrong pointer

开发者 https://www.devze.com 2023-03-10 11:12 出处:网络
Hello I\'m using Listview with a Base Adapter from an Array. I use custom rows with two TextViews and a Gallery.

Hello I'm using Listview with a Base Adapter from an Array. I use custom rows with two TextViews and a Gallery.

My arrays contains Mission items, which themselves contain a photo array.

My problem is that, when the list loads, everything is good, but actually, the first row now holds the position to the last row, so if I try to scroll my first row gallery it either loads images from the last row or it crashes completely.

开发者_如何学运维

And here is the code for my base adapter. https://gist.github.com/1009976

I guess I should keep a trace of the position in the array for the gallery adapter but I don't know how :/

0

精彩评论

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

关注公众号