Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

[BUG] multiple events fired when clicking on a switch in a row

Apologies if this has been posted before - I couldn't find anything about it.

I have a tableviewrow with a switch in it. I listen to 'click' on the row, and 'change' on the switch. On iPhone this lets me catch clicks on the actual switch, but also toggle the switch if anywhere else on the row is tapped.

However, on Android both events are firing. I would expect the row event not to fire if one of the internal widgets catches the event.

(Using git mobilesdk from a few days ago)

— asked June 14th 2010 by Damien Elmes
  • android
  • tableview
  • tableviewrow

1 Answer

  • PS: createSwitch crashes when passed a string as a value argument. I would expect it to cast the string to a boolean value, as it does on the iPhone.

    — answered June 14th 2010 by Damien Elmes
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.