title: Disable Android Switch's default action on click
body: <h2>What I'm trying to do</h2>
  <p>I am trying to use Android's Switch element to login or logout users from Facebook and LinkedIn's APIs, as shown in the image.</p>
  <p><a href="https://i.stack.imgur.com/NjcKj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NjcKj.png" alt="enter image description here" /></a></p>
  <h2>My issue</h2>
  <p>Currently the toggles trigger automtically on user click. I'd liek them to only move on command when I the API has confirmed that the user's login state has successfully changed.</p>
  <h2>My attempt</h2>
  <p>I have tried to use <code>myLoginSwitch.setClickable(false);</code> however this doesn't seem to have any affect.</p>
  <h2>What I'm trying to avoid</h2>
  <p>I imagine this could be done with a custom made switch element, however for obvious reasons I am trying to avoid that solution!</p>
  <p>Any ideas would be much appreciated!</p>