title: Custom view like lock/unlock screen of android
body: <p>I would like to create effects like lock/unlock screen of android. I have attached the screenshot here as well. In lock screen we have 2 buttons but in my case I am having 3 buttons and the middle button must be draggable. </p>
  
  <p><img src="https://i.stack.imgur.com/1dOg2.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/LVUFB.png" alt="enter image description here"> </p>
  
  <p>The middle button can be drag to left/right.</p>
  
  <p>I know I have to create custom view for this to work but I don't have any idea about how to drag button left/right with nice effect(animations) which normally any android phone have.</p>
  
  <p>I need guidance on this, so can anyone suggest me how to approach for this. </p>
  
  <p><strong>Basically i wish to move/slide button left and right and based on that want to take some action.</strong></p>