开发者

get the text off an item in the ListView

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜