davidraijmakers

Dojox.mobile.switch not working on Android

Discussion created by davidraijmakers on Jul 11, 2013
Latest reply on Sep 20, 2013 by rspeer
I am using the API v 3.5 and our company recently wants to produce for Android.

i made a mobile viewer with dojox mobile switches, but on android these are not working, they stick at half and the function wich detects the change of the mobile switch isnt called.

<div dojoType="dojox.mobile.RoundRect" shadow="true">
  <span class="bold">POI Data</span><br>
  
  <div class="mblSwRoundShape1 color1" id="switchPOI" dojoType="dojox.mobile.Switch" value="off" leftLabel="AAN" rightLabel="UIT"></div>
 </div>

dojo.connect(dijit.byId("switchPOI"), "onStateChanged", function(newState){
   POI(newState); // newState is "on" or "off"
});


I already saw a post from dojo that there was a bug: https://bugs.dojotoolkit.org/ticket/15936
But it was already fixed in 1.8.1, and the API for JS uses 1.8.3, so why is this problem still occurring?

Version 3.5 of the ArcGIS API for JavaScript uses Dojo 1.8.3 as well as version 0.3.4 of dgrid, 0.3.1 of put-selector and 0.0.5 of xstyle.


Here's a picture to show what i mean, keep in mind that the function isn't called when the switch is slided like this:

[ATTACH=CONFIG]25865[/ATTACH]

Attachments

Outcomes