Dynamically Changing the Background Color3:51 with Ben Deitch
The last thing we need to do is pick a new background color each time we display a new fact. Try it yourself, then watch this video for my explanation.
Android recently updated the
findViewById method to be generic. This means, in most cases, that a cast (e.g.
(RelativeLayout)) is no longer necessary. If you don't see an error when using
findViewById, that just means you're on a newer version of Android than I am :)
You need to sign up for Treehouse in order to download course files.Sign up