🤑 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
  • Artan Muzhaqi
    Artan Muzhaqi
    7,983 Points

    why can't we just use one single line for this

    Posted August 4, 2017 3:39am by Artan Muzhaqi
    Artan Muzhaqi
    7,983 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • spamme too
    spamme too
    92 Points

    My emulator says " Unfortunately , App has stopped ". And the error is on line "mRelativeLayout..."

    Posted June 17, 2017 7:54am by spamme too
    spamme too
    92 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Christian Rodriguez
    PLUS
    Christian Rodriguez
    Courses Plus Student 338 Points

    Relative id not working

    Posted May 24, 2017 4:12am by Christian Rodriguez
    Christian Rodriguez
    Courses Plus Student 338 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    3 Answers

  • Christopher Klebieko
    Christopher Klebieko
    2,248 Points

    Already an Android.id

    Posted May 9, 2017 6:26pm by Christopher Klebieko
    Christopher Klebieko
    2,248 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    0 Answers

  • Nagesh Kulkarni
    Nagesh Kulkarni
    269 Points

    I am beginner in android language,i get confuse when to put semicolon

    Posted April 25, 2017 7:40am by Nagesh Kulkarni
    Nagesh Kulkarni
    269 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Donick Borigas
    Donick Borigas
    269 Points

    RelativeLayout Difference

    Posted April 18, 2017 11:46pm by Donick Borigas
    Donick Borigas
    269 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • Austin Garrison
    Austin Garrison
    9,692 Points

    App crashes after assigning view to variable

    Posted April 4, 2017 11:46pm by Austin Garrison
    Austin Garrison
    9,692 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    0 Answers

  • Aryaman Kunzru
    Aryaman Kunzru
    928 Points

    Relative layout help

    Posted March 27, 2017 11:09am by Aryaman Kunzru
    Aryaman Kunzru
    928 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • vipul dimri
    PLUS
    vipul dimri
    Courses Plus Student 231 Points

    apps now working

    Posted March 12, 2017 8:00am by vipul dimri
    vipul dimri
    Courses Plus Student 231 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    0 Answers

  • Arthur Kharzamanov
    Arthur Kharzamanov
    5,414 Points

    I am confused about the id we create in RelativeLayout

    Posted December 21, 2016 6:11pm by Arthur Kharzamanov
    Arthur Kharzamanov
    5,414 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    1 Answer

  • kelvin gwaruka
    kelvin gwaruka
    931 Points

    Fun Facts app crashes after adding ID to relative Layout

    Posted November 24, 2016 8:27pm by kelvin gwaruka
    kelvin gwaruka
    931 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    5 Answers

  • Logan Wong
    Logan Wong
    1,225 Points

    Meal Challenge

    Posted August 13, 2016 4:21pm by Logan Wong
    Logan Wong
    1,225 Points
    • Android
    • Build a Simple Android App
    • Improving Our Code
    • Dynamically Changing the Background Color

    0 Answers

  • Bence Szatmári
    Bence Szatmári
    9,235 Points

    App crashes when I add ID to layout, why?

    Posted August 5, 2016 3:54pm by Bence Szatmári
    Bence Szatmári
    9,235 Points
    • Android
    • Build a Simple Android App
    • 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.