I have a clickable linear layout that I’ve generated programmaticly, and I want it to turn green when it is pressed to indicate that it is clickable, like a button would. How would I go about doing this?
I have a clickable linear layout that I’ve generated programmaticly, and I want it
Share
create a selector.xml file as below…
place this xml file in drawable folder. Then set this selector.xml as background of that linearlayout.