开发者

get the text off an item in the ListView

开发者 https://www.devze.com 2023-02-24 02:19 出处:网络
I want to remove a item from a list view.. But when i remove the item that i want, the item that is removed is the one that is in the first position.

I want to remove a item from a list view.. But when i remove the item that i want, the item that is removed is the one that is in the first position.

I have this code..

final String text = (String) lv1.getItemAtPosition(position);

db.removeCategoria(text);

why d开发者_如何转开发oes not remove the correct position?


You should try

  1. clearing up your question a bit, and
  2. removing the item from your data provider (list / xml /...).

what is db anyway?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号