Android custom view
I need some view that works like toggle button, but with my layout. For example i have ImageView and two TextViews below. I want to change background color, text color and image in all states of toggle button(on, off). I searched a lot. I can change image or add some style to it, but i need to use my layout instead of their. Is there any good solution? Or the only way is to extend ToggleButton class and override onDraw method? 
Android custom view
===

I need some view that works like toggle button, but with my layout. For example i have ImageView and two TextViews below. I want to change background color, text color and image in all states of toggle button(on, off). I searched a lot. I can change image or add some style to it, but i need to use my layout instead of their. Is there any good solution? Or the only way is to extend ToggleButton class and override onDraw method? 