jaytech123 / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

shouldDelay position need add getHeaderViewsCount() #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use addHeaderView(View v) add header view to listview
2. use the code below to load image
if(aq.shouldDelay(position, convertView, parent, tbUrl)){
                        aq.id(R.id.tb).image(placeholder, 0.75f);
                }else{
                        aq.id(R.id.tb).image(tbUrl, true, true, 0, 0, placeholder, 0, 0.75f);
                }
3. after scroll end, some picture can not be displayed.
4. if we add getHeaderViewsCount() to position, everything will be OK.
if(aq.shouldDelay(position+((ListView)parent)getHeaderViewsCount(), 
convertView, parent, tbUrl)){
                        aq.id(R.id.tb).image(placeholder, 0.75f);
                }else{
                        aq.id(R.id.tb).image(tbUrl, true, true, 0, 0, placeholder, 0, 0.75f);
                }

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by qifuren1...@gmail.com on 9 Jun 2012 at 11:07

GoogleCodeExporter commented 8 years ago
Issue is fixed. Future release will include it.

Thanks so much for reporting this is one an obvious bug that needs to be 
addressed.

Original comment by tinyeeliu@gmail.com on 19 Jun 2012 at 2:49

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 19 Jun 2012 at 2:50