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 (2014) Creating the Screen Layout Adding a Button

Tina Maddox
Tina Maddox
28,102 Points

How can I get rid of the envelope on the lower right of screen?

My app has a red envelope on the lower right of the screen. How can I get rid of it?

3 Answers

Seth Kroger
Seth Kroger
56,413 Points

It will be in the activity_main.xml file called a "FloatingActionButton". Removing the entire tag for it should get rid on it. There's also a bit of code in onCreate() after setContentView() that refers to it you should remove as well.

Alternatively you can change setContentView(R.layout.activity_main) to setContentView(R.layout.content_main), delete the boilerplate code that comes after it, and only edit the content_main.xml for your layout instead.

Tina Maddox
Tina Maddox
28,102 Points

Thank you Seth! I hope what did will be ok. Please let me know if this wasn't the right or most efficient way to do it.
In the component tree I was able to select it and it's parent and deleted both. That took away the action bar and the pink envelope.

The app runs.

Also, is there a way to search for typos? The little yellow box in the upper right corner says I have one.

Seth Kroger
Seth Kroger
56,413 Points

F2 will take you to the next error/warning in the file.

Tina Maddox
Tina Maddox
28,102 Points

Thank you! I appreciate your help :)

Seth Kroger
Seth Kroger
56,413 Points

You're very welcome!

just use an empty activity