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.
Slava Fleer6,086 Points
How to add icon instead text in overflow menu when you pressing on 3 dots in Action Bar ?
The only option when I see the icon and not text of menu item is when app:showAsAction="always" or ifroom , but it puts the icon in Action Bar. I want this icon in menu after pressing 3 dots. Tried every showAsAction variations.
Thanks for your time =)
I do not believe it is common practice for Android to include icons in the overflow menu, this stackoverflow post gives more details on not using icons. Having said that, there are a few ways to do so(although some feel very hackish). The less hackish route I've seen, but have I have not tried out either method, would be to do so programatically, as given in this stackoverflow post. Again, I would recommend going with standard coding practices and not worry about icons in the overflow area.