Skip to main content

🛍️ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🤩

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord