Monday, September 12, 2011

Re: [android-developers] Re: How can i remove item in listview

why you are setting the adapter (again) inside your try and catch block?
"try
{
weatherlist.remove(map);
listViewInfo.setAdapter(tempListAdapter);
}catch(Exception e)"

try to do this weatherlist.remove(yourobject); and then
listViewInfo.notifyDataSetChanged();

2011/9/12 skink <pskink@gmail.com>:
>
>
> On Sep 12, 9:11 am, Jhew SAN <tawisak.ruksu...@gmail.com> wrote:
>> This can remove only 1 row
>
> So you answered your question from the subject, didn't you?
>
> pskink
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment