Android custom : swipe toggle button with image
<p>I am trying to build a custom swipe toggle button in Android, I want like image see below it to look like radio button but function as toggle button. Someone help me. How can I do?</p>

<p><strong>image 1</strong></p>

<p><a href="https://i.stack.imgur.com/orONo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/orONo.png" alt="enter image description here"></a></p>