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 trialTina Maddox
28,102 PointsHow 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
56,413 PointsIt 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
28,102 PointsThank you! I appreciate your help :)
Seth Kroger
56,413 PointsYou're very welcome!
Davy Nguessan
229 Pointsjust use an empty activity
Tina Maddox
28,102 PointsTina Maddox
28,102 PointsThank 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
56,413 PointsSeth Kroger
56,413 PointsF2 will take you to the next error/warning in the file.