Hi all,
I have made customAdapter (which extends BaseAdapter). I want to reuse
the old views..So I am checking
@Override
public View getView(int position, View convertView, ViewGroup parent)
{
ViewHolder holder1;
if (convertView==null)
{
// Inflating it from the layout.. Creating new view
// Setting tag
}
else
{
// Getting tag.. reusing view
}
return converView;
}
I set the same to my gallery widget. Here I am getting the problem..
convertView what I am getting everytime when scrolling is always
null..So I am everytime creating the new one..
The same adapter is working perfectly fine with the listView. Please
help me to fix this ?
will be waiting for the reply. Thanks.
--
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