listview中的自定义数字选择器

时间:2013-05-10 09:07:54

标签: android android-layout

我的listview中有一个自定义数字选择器。我在numberpicker中为我的列表中的第一项添加数量,但是当我滚动列表时,不添加相同的数量会出现在随机项numberpicker中。怎么解决?

如果你有任何建议,请给我。

for image

http://ashutoshkumarojha.wordpress.com/2013/05/10/numberpicker-in-listview/

1 个答案:

答案 0 :(得分:0)

这是因为查看回收 ..您应该在设置数量之前使用视图持有人并检查位置。

检查http://lucasr.org/2012/04/05/performance-tips-for-androids-listview/

相关问题