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

🤑 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

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

  • 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
    • Showing results for:
    • Android
    • Build a Simple Android App with Kotlin
    • Improving Our Code
    • Close
  • Kanaetochi Okiyi
    Kanaetochi Okiyi
    467 Points

    doesnt work

    Posted on Aug 22, 2023 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 on Dec 14, 2020 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 on Jun 20, 2019 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 on Sep 5, 2018 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 on Aug 23, 2018 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 on Jun 12, 2018 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 on Jun 9, 2018 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 on Mar 16, 2018 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 on Mar 15, 2018 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 on Mar 14, 2018 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 on Mar 10, 2018 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 on Mar 10, 2018 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 on Feb 11, 2018 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 on Feb 5, 2018 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 on Dec 27, 2017 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 on Dec 23, 2017 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 on Dec 3, 2017 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 on Nov 7, 2017 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 on Oct 23, 2017 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 on Oct 23, 2017 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 on Oct 19, 2017 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 on Oct 17, 2017 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 on Oct 15, 2017 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 on Oct 9, 2017 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.