I was using state list drawable on a layout. The state list was configured in XML format. Like below