title: Custom switchcompat with different images for states
body: <p>Developing  application with List and Map data  presentations. For  switching between presentations  should  be  used custom  switch with  images, like  this:</p>
  
  <p><a href="https://i.stack.imgur.com/OFKTQ.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/OFKTQ.jpg" alt="enter image description here"></a></p>
  
  <p>How to  create such custom switchcompat? </p>