Android 牛轧糖ListView上下文菜单定位错误

Android 牛轧糖ListView上下文菜单定位错误,android,android-styles,Android,Android Styles,我的应用程序在Anrodi Nougat中的上下文定位错误,请参见或此处 不幸的是,建议的解决方案在我的应用程序中没有效果 我有minSdkVersion=“9”和targetSdkVersion=“25” My styles/styles.xml如下所示: <resources> <style name="AppBaseTheme" parent="android:Theme.Light"> </style> <style name="Ap

我的应用程序在Anrodi Nougat中的上下文定位错误,请参见或此处

不幸的是,建议的解决方案在我的应用程序中没有效果

我有minSdkVersion=“9”和targetSdkVersion=“25”

My styles/styles.xml如下所示:

<resources>
  <style name="AppBaseTheme" parent="android:Theme.Light">
  </style>
  <style name="AppTheme" parent="AppBaseTheme">
  </style>
</resources>

我创建了这个styles-v24/styles.xml:

<resources>
<style name="AppTheme" parent="android:Theme.Light">
    <item name="android:contextPopupMenuStyle">@style/myContextPopupMenuStyle</item>
</style>
<style name="myContextPopupMenuStyle" parent="@android:style/Widget.Holo.Light.PopupMenu">
    <item name="android:overlapAnchor">true</item>
</style>

@样式/myContextPopupMenuStyle
符合事实的

不幸的是没有效果。Widget.Holo.Light.PopupMenu是否适用于Theme.Light?我尝试切换到minApi=24,并将代码放在styles/styles.xml中,但没有改变。你知道我应该试试什么吗

在安卓7下,一定有无数的应用程序存在这个问题


我正在使用appcompat-v7:25.1.1顺便说一句。

我发现,
AppTheme
当然必须在
manifest.xml
中设置为应用程序的主题。
很久以前我就把它设置成了主题