This course will be retired on July 14, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
We have a data model and a layout to display it. Time to hook it all together!
Code for copy/paste
storyTextView = (TextView)findViewById(R.id.storyTextView);
choice1Button = (Button)findViewById(R.id.choice1Button);
choice2Button = (Button)findViewById(R.id.choice2Button);
Related Links
- StackOverflow: Android getResources().getDrawable() deprecated API 22 - There's a good discussion in here about how and why we use ContextCompat.
Documentation
GitHub Repo
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Iden Rosenthal
797 Points8 Answers
-
thuraya alkhaldi
70 Points3 Answers
-
PLUS
Thomas Reese
Courses Plus Student 1,411 Points1 Answer
-
PLUS
Evan Kuester
Courses Plus Student 763 Points2 Answers
-
bohot hard
405 Points1 Answer
-
welsen ho
1,330 Points1 Answer
-
Reevo XFR
713 Points2 Answers
-
Mihai Mesteru
6,449 Points3 Answers
-
PLUS
Wejdan Al Mubarky
Courses Plus Student 1,451 Points0 Answers
-
Shaliq Shukoor Vadakke Veettil
1,157 Points0 Answers
-
Stuart Lohr
163 Points1 Answer
-
Michael LaCroix
5,828 Points1 Answer
View all discussions for this video
Related 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