Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent a double-tap on a ListView?

Is there anyway to prevent double tap on ListView in Android? I found this when i accidentally tapped item on ListView and it opened up two new window. is there any way to prevent it from opening a same window twice.

like image 387
srbyk1990 Avatar asked Feb 10 '14 20:02

srbyk1990


1 Answers

Just add listView.setEnabled(false); on select of listview and after select when response will come or back button press just write---- listView.setEnabled(true);

like image 64
Abhisekh Tripathy Avatar answered Oct 04 '22 06:10

Abhisekh Tripathy