Android API 18中的windowContentOverlay发生了什么? [英] What happened to windowContentOverlay in Android API 18?

查看:1128
本文介绍了Android API 18中的windowContentOverlay发生了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将手机升级到Android 4.3后,我注意到操作栏下方的阴影不再显示。在我的应用中,我使用 windowContentOverlay 获得了自定义阴影:

After upgrading my phone to Android 4.3 I noticed the shadow below the actionbar is not showing anymore. In my app I've got a custom shadow using windowContentOverlay:

<item name="android:windowContentOverlay">@drawable/shadows_bottom</item>

它一直显示,但现在在API 18上消失了。
从主题没有任何改变。

It's always been showing but now it's gone on API 18. Removing that line from the theme doesn't change anything. while on other API versions it shows a default slight shadow.

还有其他人注意到该问题吗?

Anyone else has noticed that issue?

推荐答案

这正式是一个错误,将在下一平台版本中得到修复:
https://code.google.com/p/android/issues/detail?id=58280

This is officially a bug and will be fixed for next platform release: https://code.google.com/p/android/issues/detail?id=58280

更新:
这似乎已在API级别19上修复。

UPDATE: This seems to be fixed on API level 19

这篇关于Android API 18中的windowContentOverlay发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆