Android的拆分操作栏,图标只在底栏只在、图标、操作、Android

2023-09-12 02:46:49 作者:我一直在你身边从未走远

我想迫使被放置在了Android的拆分操作栏底栏的图标,同时确保顶部操作栏是空的。我已经尝试了很多,但一直没能找出如何做到这一点。

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:

推荐答案

拆分操作栏仅用于 - 小 / -Normal 屏幕纵向 - 中的其他情况下的,操作栏可以正常工作没有分裂

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.

三星Galaxy Tab 2是 -large 设备。它不会使用无论是在肖像,风景持有或正在加紧由大象的分裂行动起​​来吧,不管。

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)