您的位置:首页 > 其它

解决activity加上Theme.Translucent.NoTitleBar 页面跳转显示桌面

2015-07-02 18:05 330 查看
自定义style 继承Theme.Translucent.NoTitleBar

<style name="My.Translucent" parent=" @android :style/Theme.Translucent.NoTitleBar">
<item name="android:windowBackground"> @android :color/transparent</item>
<item name="android:colorBackgroundCacheHint"> @android :color/transparent</item>
<item name="android:windowIsTranslucent">false</item>
<item name="android:windowAnimationStyle"> @android :style/Animation</item>
</style>

在配置文件中给activity设置这个theme,可以解决有时候会突然看到桌面的问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: