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
  • Jasper Masinyani
    Jasper Masinyani
    539 Points

    Now let's add a Button element in XML. Hint: Copy and paste the TextView element and change 'TextView' to 'Button'.

    Posted July 12, 2017 7:28pm by Jasper Masinyani
    Jasper Masinyani
    539 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • Gabby De La Cruz
    Gabby De La Cruz
    817 Points

    paste and copy the textview and change it to button

    Posted June 29, 2017 6:48pm by Gabby De La Cruz
    Gabby De La Cruz
    817 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    0 Answers

  • Gary wei
    PLUS
    Gary wei
    Courses Plus Student 1,021 Points

    Now let's add a Button element in XML. Hint: Copy and paste the TextView element and change 'TextView' to 'Button'.

    Posted June 18, 2017 6:09pm by Gary wei
    Gary wei
    Courses Plus Student 1,021 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • Stuart Lohr
    Stuart Lohr
    163 Points

    what did i do wrong?

    Posted May 26, 2017 6:10pm by Stuart Lohr
    Stuart Lohr
    163 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • Aryan Bhatia
    Aryan Bhatia
    1,601 Points

    How to add the button

    Posted April 18, 2017 10:33am by Aryan Bhatia
    Aryan Bhatia
    1,601 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • promise sele
    PLUS
    promise sele
    Courses Plus Student 388 Points

    Button element in XML

    Posted March 7, 2017 5:37pm by promise sele
    promise sele
    Courses Plus Student 388 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • Keith Ostertag
    Keith Ostertag
    16,619 Points

    disabled because the project doesn't contain any valid native configurations - Android Studio on Linux

    Posted January 13, 2017 4:02pm by Keith Ostertag
    Keith Ostertag
    16,619 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    0 Answers

  • kelechi nmeni
    kelechi nmeni
    161 Points

    Now let's add a Button element in XML. Hint: Copy and paste the TextView element and change 'TextView' to 'Button'.

    Posted June 23, 2016 5:33am by kelechi nmeni
    kelechi nmeni
    161 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • godswill ndionyemma
    godswill ndionyemma
    487 Points

    would I learn how to write java

    Posted June 6, 2016 9:10pm by godswill ndionyemma
    godswill ndionyemma
    487 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • Arijit Panigrahy
    PLUS
    Arijit Panigrahy
    Courses Plus Student 487 Points

    Did not exactly get the assignment

    Posted May 12, 2016 11:32am by Arijit Panigrahy
    Arijit Panigrahy
    Courses Plus Student 487 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • fernandocompres
    PLUS
    fernandocompres
    Courses Plus Student 836 Points

    what does mean when the line goes down?

    Posted April 11, 2016 11:29am by fernandocompres
    fernandocompres
    Courses Plus Student 836 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • Ben Rodwell
    Ben Rodwell
    487 Points

    Hi everyone,

    Posted April 5, 2016 4:14am by Ben Rodwell
    Ben Rodwell
    487 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    2 Answers

  • Furqan Mujahid
    Furqan Mujahid
    3,367 Points

    Now let's add a Button element in XML. Hint: Copy and paste the TextView element and change 'TextView' to 'Button'.

    Posted February 16, 2016 8:29pm by Furqan Mujahid
    Furqan Mujahid
    3,367 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

  • ashish mehrotra
    ashish mehrotra
    131 Points

    how to write code for adding button

    Posted January 9, 2016 3:42pm by ashish mehrotra
    ashish mehrotra
    131 Points
    • Android
    • Build a Simple Android App
    • Creating the Screen Layout
    • Adding a Button

    1 Answer

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