Color Change For Custom Tab (Button)

pmhart83pmhart83 USMember ✭✭✭


I created my own tab interface for my Android project. When the user hits a tab I want to color to flicker from blue back to black.

I am using a Timer right now because using Threading.Sleep(...) wasn't working. It seems that even though the code to change the background happens before the sleep call, there is a delay for the background to actually change and it too get paused by the thread sleeping.

I looked at the View object reference but didn't see any events. I am looking for something like "OnLayoutChanged" that I can use to wait until I know the background has been changed and then call Threading.Sleep.

Or another suggestion?

Sign In or Register to comment.