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
- Simple Refactoring: Creating a New Class 5:45
- Creating a New Class 2 objectives
- Simple Refactoring: Using a New Class 3:47
- Simple Refactoring 5 questions
- Dynamically Changing the Background Color 3:58
- Dynamically Changing the Background Color 1 objective
- Adding More Colors 3:52
- Using the New Colors 3:38
- Adding Colors 1 objective
- Adding an App Icon 4:47
- Adding an App Icon 3 questions
Well done!
You have completed Build a Simple Android App with Kotlin!

- 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
Let's continue with adding additional colors as the background for each new fun fact. We'll add a new Java object to hold the colors and serve one up on each tap of the button!
Color codes (from the style guide)
val colors = arrayOf(
"#39add1", // light blue
"#3079ab", // dark blue
"#c25975", // mauve
"#e15258", // red
"#f9845b", // orange
"#838cc7", // lavender
"#7d669e", // purple
"#53bbb4", // aqua
"#51b46d", // green
"#e0ab18", // mustard
"#637a91", // dark gray
"#f092b0", // pink
"#b7c0c7" // light gray
)
Documentation
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Bryan Wiedeman
10,203 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