Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Self-Destructing Message Android App Sending Messages Adding a Send Button

Temidayo Adelakin
Temidayo Adelakin
17,505 Points

app:showAsAction doesn't work

I'm on the code challenge for sending messages where you have to add a button to the action bar. I'm on the fourth task where it ask for me to set the button to always show.

From my knowledge of Android "app:showAsAction="always" " is the correct attribute but for some reason it's not working which is insanely annoying. I've tried android:visible but that doesn't work either.

<?xml version="1.0" encoding="utf-8"?>

<menu xmlns:android="http://schemas.android.com/apk/res/android">

    <!-- Add code in here! -->
  <item android:id="@+id/action_like"


1 Answer

Dan Johnson
Dan Johnson
40,532 Points

You have the correct attribute but you want the android namespace.