[android-developers] Re: Inflator

2009-12-07 Thread Dexter's Brain
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 wro

[android-developers] Re: Inflator

2009-12-07 Thread Business Talk
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 woul

[android-developers] Re: Inflator

2009-12-07 Thread Dexter's Brain
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 wrote: > In my custom adapter, that implements the BaseAdapter and its getView, > I use the inflator to