Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Now that we've declared our variables, it's time to start using them! In this video we'll see how we can assign these variables to the corresponded Views from our layout.
Read Me!
Android recently updated the findViewById
method to be generic. This means, in most cases, that a cast (e.g. (Button)
) 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 :)
Related Links
- Android Style Guidelines
- A Note on Casting - (scroll down a bit)
Documentation
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up