I only get the convertView as null, the first time. In the subsequent calls, the convertView is not null.
If you can post some of your code, the part where you are using your Custom Adapter, we will try to figure out what the problem is. Thanks, Kumar Bibek On Dec 7, 11:07 pm, Business Talk <[email protected]> wrote: > 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

