mdsami / android-query

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

Unable to find view with a holder pattern #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Maybe a bug I can report to you, not sure about that. I make a call to cb.url( 
mData.get(position-1) 
).ratio(AQuery.RATIO_PRESERVE).animation(AQuery.FADE_IN).progress(viewHolder.pba
r); to set up my imageview, after gettting a recycled view using a view holder 
pattern 
(http://developer.android.com/resources/samples/ApiDemos/src/com/example/android
/apis/view/List14.html) and sometimes the progress bar doesn't appear, or 
appears when it's not needed, so I think it not well updated in your library or 
I miss use it. I have to make this call before and then it's ok :

if( aq.getCachedImage(mData.get(position)) == null ){
   viewHolder.pbar.setVisibility(View.VISIBLE);
}

Original issue reported on code.google.com by tinyeeliu@gmail.com on 29 Sep 2011 at 1:13

GoogleCodeExporter commented 8 years ago
Issue is not finding view but progress bar not shown when duplicated image 
requests take place in list view.

Original comment by tinyeeliu@gmail.com on 29 Sep 2011 at 8:38