How to create a button as shown in the picture:
and also Image name Button
should permanently change color on click. Moreover I will be creating this button dynamically from the android file. So it will be good if somebody suggest me in that way instead of xml files way.