To make MainActivity informed when color toggled, we can implement interface for our custom view.
http://android-er.blogspot.com/2014/0...
On this page of the site you can watch the video online Implement callback function by implementing interface for custom view with a duration of hours minute second in good quality, which was uploaded by the user an Erik 04 September 2014, share the link with friends and acquaintances, this video has already been watched 1,523 times on youtube and it was liked by 1 viewers. Enjoy your viewing!