Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- listView.setLongClickable(true);
- listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener()
- {
- public boolean onItemLongClick(AdapterView parent, View view, int position, long id)
- {
- Vibrator v = (Vibrator) getApplicationContext().getSystemService(Context.VIBRATOR_SERVICE);
- v.vibrate(50);
- GBD.Remover(intl.get(position));
- Toast.makeText(getApplicationContext(), "Tarefa com ID " + intl.get(position) + " Removida.", Toast.LENGTH_LONG).show();
- AtulizarListView();
- return true;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment