Android toolbar without overflow menu

匆匆过客 提交于 2019-12-13 02:11:38

问题


I want to use a toolbar instead of an actionBar since i can't use the split actionbar option, so i implemented two toolbars one in the top and the other in the bottom but im having a problem : that some of the items are in the overflow menu leaving a huge empty space this is how my toolbar looks like :

and what i need is somthing like this :


回答1:


Add this line in your xml layout:

android:showAsAction="always"

so that your items never appear in the overflow menu.



来源:https://stackoverflow.com/questions/30920580/android-toolbar-without-overflow-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!