title: How to set focus on button if clicked and buttons are made in xml
body: <p>I have created 3 buttons and i want to change focus of that button which is clicked by user
  using coding is there any way ?</p>
  
  <p>i have seen these links</p>
  
  <p><strong><a href="https://stackoverflow.com/questions/9750097/how-can-a-button-get-the-focus">link1</a></strong></p>
  
  <p><strong><a href="https://stackoverflow.com/questions/4680065/android-set-clicked-focus-on-button">link2</a></strong></p>
  
  <p>but what i want to know that when i made instances of these 3 buttons i only want focus which is clicked at that time and i want to change focuscolor on click defined by me using coding?
  Can anybody tell me?</p>