I am trying to set the background color of an image view.
Best way to implement the selector is by using the xml instead of using programatic way as its more easy to implemnt with xml.
For more information i implemented using this link http://www.blazin.in/2016/03/how-to-use-selectors-for-botton.html