you need to invalidate the data in the adapter so the listview knows something has changed, this also implies that your adapter is configured to only display items associated with that data structure and not another one.
Mike On Feb 3, 2010, at 3:40 PM, Stefan wrote: > Hi, > > i want to remove the first line from my ListView. I use the > http://www.androidguys.com/2008/07/22/fancy-listviews-part-three/ > example from Mark Murphy. > > I have a ImageView and two TextViews in one List-row. > > My adapter class: > class MyAdapter extends ArrayAdapter<String> > { > Activity context; > > MyAdapter(Activity context) > { > super(context, R.layout.row, description); //description is a > list of Strings and is showed in one TextView. The image and the other > TextView depends on other objects. > this.context=context; > } > > I try: > > String delete = (((MyAdapter)lv.getAdapter()).getItem(0)); > my_adapter.remove(delete); > lv.setAdapter(my_adapter); > > But it only remove the description, but not the whole row!? > > Thanks in advance, > Stefan > > -- > 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 -- 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

