gpt4 book ai didi

java - 带图标的菜单项溢出?

转载 作者:行者123 更新时间:2023-12-02 07:45:31 25 4
gpt4 key购买 nike

如果我单击“溢出”操作栏图标,我只能看到文本形式的菜单项,但不会显示图标!这是默认行为吗?如何强制显示图标?

如果你看http://developer.android.com/design/patterns/actionbar.html >“共享数据”图像,至少看起来可以有图标。但如何呢?

最佳答案

Is this the default behaviour?

是的。

How can I force showing the icon?

据我所知,你不能。这些图标用于操作栏项目(工具栏按钮)和经典选项菜单(例如 Android 2.x)。

If you look at http://developer.android.com/design/patterns/actionbar.html > "Sharing data" image, it at least seems to be possible to have icons there.

这不是溢出。即a ShareActionProvider 。您可以通过阅读 the page you linked to 来了解这一点。 :

Whenever your app permits sharing of data, such as images or movie clips, use a share action provider in your action bar. The share action provider is designed to speed up sharing by displaying the most recently used sharing service next to a spinner button that contains other sharing options.

关于java - 带图标的菜单项溢出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10923644/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com