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


Menu item for logOut and EditFriends not appearing in action bar for Ribbit app

On my emulator the 3 dots show exactly as shown in the courses but when I test on my Samsung Galaxy S4 they are gone. Should I be doing something different in the XML files for my device? Could this have something to do with removing the layout inflator in the "Removing Friend Relations" course that impacts certain devices?

4 Answers

I believe there are 'hacks' available for putting the overflow menus within the action bar regardless of the hardware the app is run on, although such things are not really recommended.

I had this issue and did a quick look up on Google.

From the Google documentation: 'The action overflow in the action bar provides access to your app's less frequently used actions. The overflow icon ONLY APPEARS on phones that have no menu hardware keys. Phones with menu keys display the action overflow when the user presses the key.'

The S3 Mini has a dedicated hardware key in the bottom left next to the home button. I assume the S4 will be the same. Pressing this menu button, the overflow menu pops up at the bottom of the app.

Thanks, I did notice that as well but then went in and checked a few apps and indeed saw it despite this comment from Google. For example, Feedly is an app I use often and they managed to get the overflow icon in the action bar. Pocket also shows the overflow icon on my phone and shows the same options if you click on the hardware key instead.

You're right, no hacking for me. Google is looking for a consistent user experience for these types of phones. Thanks for checking it out.