🤑 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
  • 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.

    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.