🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Kanaetochi Okiyi
    Kanaetochi Okiyi
    467 Points

    doesnt work

    Posted August 22, 2023 9:56pm by Kanaetochi Okiyi
    Kanaetochi Okiyi
    467 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    1 Answer

  • Kathleen Wang
    Kathleen Wang
    2,840 Points

    Why am I getting an error when using "setTextColor"?

    Posted December 14, 2020 12:14am by Kathleen Wang
    Kathleen Wang
    2,840 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    1 Answer

  • Viki Marras
    Viki Marras
    5,725 Points

    When I click on the button its showing only 1st changed color and the color does not change after multiple hits. Why so?

    Posted June 20, 2019 11:34am by Viki Marras
    Viki Marras
    5,725 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Using the New Colors

    1 Answer

  • Alina Pohl
    Alina Pohl
    5,089 Points

    Set the text color of foodLabel to Color.BLUE. Then set the text color of drinkLabel to Color.GRAY. Doesn't Work, Help

    Posted September 5, 2018 12:39pm by Alina Pohl
    Alina Pohl
    5,089 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    1 Answer

  • Bryan Wiedeman
    Bryan Wiedeman
    10,203 Points

    jsyk the code for copy-pasting is still java code

    Posted August 23, 2018 2:25am by Bryan Wiedeman
    Bryan Wiedeman
    10,203 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding More Colors

    1 Answer

  • Gwynneth Gwara
    Gwynneth Gwara
    3,515 Points

    Challenge Task 1 of 1 Let's continue to add color to MealActivity. In the onCreate() method, set the te

    Posted June 12, 2018 8:11am by Gwynneth Gwara
    Gwynneth Gwara
    3,515 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    3 Answers

  • Gwynneth Gwara
    Gwynneth Gwara
    3,515 Points

    Challenge Task 2 of 2 Now add a String property named title and set it to, "Android Adventures".

    Posted June 9, 2018 6:22pm by Gwynneth Gwara
    Gwynneth Gwara
    3,515 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Enyang Mercy
    PLUS
    Enyang Mercy
    Courses Plus Student 2,339 Points

    Android - adding more colors kotlin

    Posted March 16, 2018 1:32pm by Enyang Mercy
    Enyang Mercy
    Courses Plus Student 2,339 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    1 Answer

  • GURUPRASAD NAGARAJAN
    GURUPRASAD NAGARAJAN
    7,853 Points

    How to display from an array of images?

    Posted March 15, 2018 7:42am by GURUPRASAD NAGARAJAN
    GURUPRASAD NAGARAJAN
    7,853 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding an App Icon

    3 Answers

  • Enyang Mercy
    PLUS
    Enyang Mercy
    Courses Plus Student 2,339 Points

    Android(Kotlin) set backgroundColor for relativeLayout

    Posted March 14, 2018 12:45pm by Enyang Mercy
    Enyang Mercy
    Courses Plus Student 2,339 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • Enyang Mercy
    PLUS
    Enyang Mercy
    Courses Plus Student 2,339 Points

    add string title Kotlin with android

    Posted March 10, 2018 12:52pm by Enyang Mercy
    Enyang Mercy
    Courses Plus Student 2,339 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Creating a New Class

    1 Answer

  • Enyang Mercy
    PLUS
    Enyang Mercy
    Courses Plus Student 2,339 Points

    Confused Did we make FactBook class or both factBook and getFact classes?

    Posted March 10, 2018 11:28am by Enyang Mercy
    Enyang Mercy
    Courses Plus Student 2,339 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Simple Refactoring: Creating a New Class

    2 Answers

  • George Popovich
    George Popovich
    15,055 Points

    Having troubles with 'Adding Colors' exercise...

    Posted February 11, 2018 7:53pm by George Popovich
    George Popovich
    15,055 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    2 Answers

  • Herman Vicens
    Herman Vicens
    12,540 Points

    Unknown

    Posted February 5, 2018 11:05pm by Herman Vicens
    Herman Vicens
    12,540 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    0 Answers

  • Carlo Antonio Bilbao
    Carlo Antonio Bilbao
    24,113 Points

    This answers to this quiz is incorrect

    Posted December 27, 2017 6:13am by Carlo Antonio Bilbao
    Carlo Antonio Bilbao
    24,113 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    0 Answers

  • Alfredo Ferreira
    Alfredo Ferreira
    546 Points

    i tried everything but it doest not work

    Posted December 23, 2017 11:28am by Alfredo Ferreira
    Alfredo Ferreira
    546 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    1 Answer

  • Demetre Tsagouris
    Demetre Tsagouris
    8,517 Points

    The question must be broken. The challenge can't resolve "setTextColor" method.

    Posted December 3, 2017 10:32pm by Demetre Tsagouris
    Demetre Tsagouris
    8,517 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding Colors

    1 Answer

  • GURUPRASAD NAGARAJAN
    GURUPRASAD NAGARAJAN
    7,853 Points

    How do I add image to screen?

    Posted November 7, 2017 7:18am by GURUPRASAD NAGARAJAN
    GURUPRASAD NAGARAJAN
    7,853 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Adding an App Icon

    0 Answers

  • Jonathan Grieve
    MOD
    Jonathan Grieve
    Treehouse Moderator 91,254 Points

    Changing background colour of a layout dynamically

    Posted October 23, 2017 1:59pm by Jonathan Grieve
    Jonathan Grieve
    Treehouse Moderator 91,254 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Jonathan Grieve
    MOD
    Jonathan Grieve
    Treehouse Moderator 91,254 Points

    Error message with Views

    Posted October 23, 2017 1:35pm by Jonathan Grieve
    Jonathan Grieve
    Treehouse Moderator 91,254 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Vladimir Vasconcelos
    PLUS
    Vladimir Vasconcelos
    Courses Plus Student 6,433 Points

    What am I doing wrong?

    Posted October 19, 2017 12:56am by Vladimir Vasconcelos
    Vladimir Vasconcelos
    Courses Plus Student 6,433 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Creating a New Class

    3 Answers

  • Sai Krishna Katkam
    PLUS
    Sai Krishna Katkam
    Courses Plus Student 1,946 Points

    Random class object is also being created multiple times whenever the user clicks button. Can we not create object once!

    Posted October 17, 2017 9:56pm by Sai Krishna Katkam
    Sai Krishna Katkam
    Courses Plus Student 1,946 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Simple Refactoring: Using a New Class

    1 Answer

  • George Thomas
    George Thomas
    768 Points

    I am trying to change the background color of theRelativeLayout variable named mealLayout

    Posted October 15, 2017 6:58pm by George Thomas
    George Thomas
    768 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • samuel zaffran
    samuel zaffran
    24,815 Points

    Mistake in the challenge

    Posted October 9, 2017 12:43pm by samuel zaffran
    samuel zaffran
    24,815 Points
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.