首页 > 其他 > 详细

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

时间:2015-07-02 19:11:22      阅读:632      评论:0      收藏:0      [点我收藏+]

自定义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,可以解决有时候会突然看到桌面的问题。

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

原文:http://www.cnblogs.com/happyaday/p/4616766.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!