title: How to implement sliding button?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8150596/android-how-to-create-slide-on-off-button">Android: How to create slide (on/off) button</a>  </p>
  </blockquote>
  
  
  
  <p>I want to create sliding button in my Android application such that it will look like the following: </p>
  
  <p><img src="https://i.stack.imgur.com/WRtX0.png" alt="enter image description here"></p>
  
  <p>How can I do that?</p>