Hi I\'m trying to make my linear layout work like button. I mean I\'m trying to change its background color when the state is changed. I used selector to solve it, but it didn\'
I am using a linear layout as a button however, I do not have anything assigned as clickable or not and it seems to work just fine. I have set up a style for my standard button and I just assign that style to the linear layout like I would any other button.
The linearlayout as a button:
My style definition for the button:
My @drawable/btn_stan_sel file:
My drawable file repeated for each state just with different colors for each state: