Android Split Action Bar-icons only in the bottom bar

做~自己de王妃 提交于 2020-01-01 20:23:19

问题


I want to force the icons to be placed in the Bottom bar of Android's split action bar, while making sure that the top action bar remains empty. I have experimented a lot, but have not been able to figure out how to do this.

I am sure it is possible, because I have seen it in the Google Maps app. See the image below:

split action bar with icons http://imageshack.us/a/img856/3592/portraito.png


回答1:


The split action bar is only used on -small/-normal screens in portrait orientation -- in all other cases, the action bar behaves normally without a split.

The Samsung Galaxy Tab 2 is a -large device. It will not use a split action bar, regardless of whether it is held in portrait, landscape, or is being stepped on by an elephant.

If you are seeing apps that run on such devices that appear to have split action bars, then they are not using the action bar for those items, but instead are rolling their own bottom bar. This is not advisable.

(note: no actual elephants were harmed in the creation of this answer)



来源:https://stackoverflow.com/questions/12799059/android-split-action-bar-icons-only-in-the-bottom-bar

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