如何强制PopupMenu重叠锚点? [英] How to force PopupMenu to overlap anchor?
本文介绍了如何强制PopupMenu重叠锚点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何强制PopupMenu重叠锚点?我想重新创建类似于此的内容:
How to force PopupMenu to overlap anchor? I would like to recreate something similar to this:
推荐答案
设置android:dropDownVerticalOffset
允许我重叠锚视图:
Setting android:dropDownVerticalOffset
allowed me to overlap anchor view:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="popupMenuStyle">@style/PopupMenu</item>
</style>
<style name="PopupMenu" parent="@style/Widget.AppCompat.Light.PopupMenu">
<item name="android:dropDownVerticalOffset">-36dip</item>
</style>
这篇关于如何强制PopupMenu重叠锚点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文