Handling double/multiple clicks of views

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Handling double/multiple clicks of views

Postby satishkumar_lskin » Fri Apr 24, 2009 2:24 pm

Hi All ,
I have a problem in handling double/multiple clicks of views in a View hierarchy. Say , for example , I have a GridView and I perform a double click on one of its child views.
The onClickListener of the child view gets invoked two times at unpredictable time-intervals. On Click of a Child View, I do some UI updates and render a new View hierarchy. The second click event also tries to perform the same UI update and I end up having the app crashed.
The same behaviour or a similar problem is faced if i click more than one child view on the GridView in quick succession.
How can this double/multiple clicks of views issue, be resolved ? Can anybody help, please ?
Posts: 32
Joined: Mon Oct 20, 2008 8:15 am
Location: Coimbatore , TamilNadu, India


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 9 guests