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 trialAdel Fatkhutdinov
1,697 PointsHow to make the three dots appear on phones that have a special "Menu button" for these goals?
On my phone - Lenovo A800 I have a "Menu button" and when i touch it, I see the logout menu. But I also want to see three dots on the ActionBar. How to make it, any ideas? Thanks in advance!
2 Answers
Fabian Gmeiner
6,574 PointsIf you just want them to be visible, you could simply add a menu item with the three dots as an icon, just don't react to clicks. Make sure you set app:showAsAction="ifRoom" on that item.
If you want a real overflow-menu you have to react to clicks on that menu item by opening a custom-made dropdown-menu
Best regards, Fabian
Peter Kazimir
5,277 PointsI faced a problem where after pressing a hardware "options" button I always got Settings menu item. Then I realised, that I had two xml menu files in my project... one was menu_main and the other one was main_menu... I was editing the wrong one... Someone might find this helpful :)