如何删除android ListView项目,请帮助。
(http://i.stack.imgur.com/yBeJ8.jpg)
我是parse.co报告我写的是转移知道,但我该如何删除文字。所以我添加了一个列表项,然后我想按位置删除列表项。
答案 0 :(得分:0)
任务任务= mTasks.get(position);
task.deleteInBackground(new DeleteCallback(){
@Override
public void done(ParseException e) {
if (e == null) {
task.deleteEventually();
Toast toast = Toast.makeText(mContext, "Kısa süre içinde silinecektir.", Toast.LENGTH_LONG);
toast.show();
} else {
Toast toast = Toast.makeText(mContext, "Silmede Hata Oluştu.", Toast.LENGTH_LONG);
toast.show();
}
}
});