Hello,

I need to delete item from list view. i serch in google for examples but no 
one work. Here is a picuture of my project
<https://lh6.googleusercontent.com/-z78McA3Jyxw/T7Y3ghXZkrI/AAAAAAAAABY/xsJY7SuaOaY/s1600/Untitled.jpg>
 

Everything with adding work. But i need to delete one of them after long 
click. If i understand good i need to get index/id of added item and delete 
it.  Something like what - 

                listView_monday = (ListView) 
findViewById(R.id.myListview_monday);

listView_monday.setAdapter(new 
ArrayAdapter<Day>(this,R.layout.list_view_monday, 
SilentClockActivity.listas_monday));

listView_monday.setOnItemLongClickListener(new 
AdapterView.OnItemLongClickListener() {

@Override
public boolean onItemLongClick(AdapterView<?> arg0, View arg1,
int arg2, long arg3) {
// TODO Auto-generated method stub
 return false;
}
});

Thats all, if You need more info or source code - write here, I think 
someone helps for me! :) Thanks ;)

-- 
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

Reply via email to