I have a custom listview, that has 2 textviews and 2 buttons (play and delete button) I want when I click the delete button to delete the current line.
My adapter cl
try this
b2.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { lista.remove(position); SunetePreferateAdaptor.notifyDataSetChanged(); } });