thanks Kumar, that's exactly what I am doing but the problem is that I am getting the convertView as null all the time. Not once did I get the convertView not null (did you ever encounter such problem before). Otherwise, the adapter works fine. Even so, the inflate step is very expensive. It would be nice if I could inflate once in the constructor and then clone the inflated view in the getView as needed (when the convertView is null). Wouldn't it be nice?
On Dec 7, 12:33 pm, "Dexter's Brain" <[email protected]> wrote: > Just check if convertView is null. If it is null, you have to inflate, > else use the convertView directly. > > Thanks, > Kumar Bibek > > http://tech-droid.blogspot.com > > On Dec 7, 10:30 pm, Business Talk <[email protected]> > wrote: > > > > > In my custom adapter, that implements the BaseAdapter and its getView, > > I use the inflator to generate a new view from a layout. Is there any > > way to avoid repetitive inflation step? specially when the convert > > View (an argument to the getView) is always null, which mean it can’t > > be reused and the view needs to be re-inflated. I was looking for > > something like a copy or clone but fund none.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

