處理方法
試下這個
設置 ListaUtentiStringa ArrayList、 profilesAdapter adapter 爲全局變量
1
2
3
4
5
6
7
8
|
builder.setPositiveButton( "Si" , new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
// How to remove the selected item?
ListaUtentiStringa.remove(arg2);
profilesAdapter.notifyDataSetChanged();
dialog.dismiss();
}
});
|
原文地址:http://www.itmmd.com/201411/125.html
該文章由 萌萌的IT人 整理髮布,轉載須標明出處。