🤑 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
  • M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points

    error in compiler session

    Posted December 17, 2015 1:18pm by M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 Answers

  • M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points

    error in compiler session

    Posted December 17, 2015 1:18pm by M.Sneha Priyaa
    M.Sneha Priyaa
    1,042 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Jibran Khan
    Jibran Khan
    1,149 Points

    Help with Build a simple android course

    Posted December 11, 2015 2:46am by Jibran Khan
    Jibran Khan
    1,149 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • MUZ140831 Blessing Funani
    MUZ140831 Blessing Funani
    654 Points

    how do l change background color to green

    Posted August 4, 2015 3:34pm by MUZ140831 Blessing Funani
    MUZ140831 Blessing Funani
    654 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • Nancy Melucci
    PLUS
    Nancy Melucci
    Courses Plus Student 36,159 Points

    Code Challenge Android App Development mealLayout

    Posted July 26, 2015 11:05pm by Nancy Melucci
    Nancy Melucci
    Courses Plus Student 36,159 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • mike LaBianca
    PLUS
    mike LaBianca
    Courses Plus Student 2,456 Points

    Trying to change background color I know I'm close. my code relativeLayout.setBackGroundColor(Color.GREEN);

    Posted July 22, 2015 6:01pm by mike LaBianca
    mike LaBianca
    Courses Plus Student 2,456 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • Ryan Behrens
    Ryan Behrens
    1,949 Points

    not working; final RelativeLayout relativeLayout = (RelativeLayout) findViewById(R.id.relativeLayout); //cannot find ?

    Posted July 21, 2015 9:13am by Ryan Behrens
    Ryan Behrens
    1,949 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    0 Answers

  • Antoine Vachon
    Antoine Vachon
    744 Points

    mealLayout.SetBackgroundColor(Color.GREEN); : what is wrong with this line of code? Gives me a compiler error.

    Posted June 24, 2015 7:00pm by Antoine Vachon
    Antoine Vachon
    744 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • MUZ141035 Mabasa Tsuro
    MUZ141035 Mabasa Tsuro
    811 Points

    how do you change the background color to constant Color.GREEN

    Posted June 12, 2015 2:29pm by MUZ141035 Mabasa Tsuro
    MUZ141035 Mabasa Tsuro
    811 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • P ruijters
    P ruijters
    1,217 Points

    random color code generator gives negative values for colors:

    Posted May 3, 2015 2:56pm by P ruijters
    P ruijters
    1,217 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 Answers

  • Wise Osagie
    Wise Osagie
    365 Points

    Code someone explain the member variable and public class

    Posted April 29, 2015 2:56am by Wise Osagie
    Wise Osagie
    365 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points

    am stuck here challenge task 1:1 improving our code

    Posted April 14, 2015 9:02am by MUZ140584 Heredity Mbundire
    MUZ140584 Heredity Mbundire
    4,979 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    4 Answers

  • Girri M Palaniyapan
    Girri M Palaniyapan
    7,829 Points

    I am getting an Incompatible Type Error

    Posted March 24, 2015 2:11pm by Girri M Palaniyapan
    Girri M Palaniyapan
    7,829 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    2 Answers

  • Brandon Wash
    PLUS
    Brandon Wash
    Courses Plus Student 1,186 Points

    The code below has a RelativeLayout variable named mealLayout. Change the background color of this layout to green. Use

    Posted January 3, 2015 10:58pm by Brandon Wash
    Brandon Wash
    Courses Plus Student 1,186 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points

    Improving our code

    Posted December 12, 2014 6:44am by MUZ140073 Lionell Matambanadzo
    MUZ140073 Lionell Matambanadzo
    12,509 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • mersit ukosata
    mersit ukosata
    736 Points

    Having trouble with this quiz

    Posted October 12, 2014 2:22am by mersit ukosata
    mersit ukosata
    736 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Keith Cox
    PLUS
    Keith Cox
    Courses Plus Student 1,291 Points

    Dynamically changing background color Android Java

    Posted September 23, 2014 4:43pm by Keith Cox
    Keith Cox
    Courses Plus Student 1,291 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 Answers

  • Raymond Lam
    Raymond Lam
    1,571 Points

    Building a simple android Ap, stage 5 Challenge, Stuck

    Posted August 31, 2014 7:22am by Raymond Lam
    Raymond Lam
    1,571 Points
    • Android
    • Build a Simple Android App (2014)
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 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.