title: android-How to make custom toggle button
body: <p>I want to make a custom toggle button , for instance when I click on the button , the star turns on and when I click again ,the star turns off. 
  i've tried some codes but they change the button to an image and when I click on it ,the image changes . I mean ,there is no button , it's just an image . </p>
  
  <p>I want the image to be inside the button , like the default toggle button and I just need to change the image inside it .</p>
  
  <p>How can I do so ? </p>
  
  <p>thanks </p>