Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App with Java Creating the Screen Layout Adding a Button

I am trying to put a button on XML Project

Hi everyone, I trying to put a botton where the question mark is at I tryed everything But can't figure it out. http://tinypic.com/r/sqnhuu/9

2 Answers

Seth Kroger
Seth Kroger
56,413 Points

That area is part of the theme/frame called the App Bar. You'll also see older material refer to it as the Action Bar. Adding a button there is a little different because there are conventions you are expected to adhere to.

https://developer.android.com/training/appbar/actions.html

Oh okay Thank You. In the video from Treehouse he did not say anything about the App Bar but there was a custom text there. I just don't want to leave it blank you know. My Whatsapp number is (804) 939-8749. How can I add my text there so I can continue threw the course?

Thanks for the link.

This Thread is Solved now thanks alot!