要实现WindowManager添加的窗口,实现动画显示,就需要添加如下红色的属性,其他的添加View只要设置其Animations属性也会实现动画,当然自己实现也可,但是能直接用系统的已经实现好的,也很方便。

windowManager = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);

WindowParams = new LayoutParams(LayoutParams.FLAG_FULLSCREEN,LayoutParams.FLAG_FULLSCREEN);
WindowParams.type=LayoutParams.TYPE_SYSTEM_ERROR;
WindowParams.flags=LayoutParams.FLAG_ALT_FOCUSABLE_IM; //window gets focus
WindowParams.format=PixelFormat.TRANSPARENT; //set the opacity to 100%
WindowParams.windowAnimations=android.R.style.Animation_Translucent; // set the animation for the window
WindowParams.gravity = Gravity.RIGHT | Gravity.TOP; windowManager.addView(view, WindowParams);

最新文章

  1. ubuntu14.04 yuv文件的播放及视频信息的查看
  2. opensuse-13.1体验
  3. Delphi RICHEDIT中插入图象
  4. Android实例-程序切换到后台及从后台切换到前台
  5. 51nod1046快速幂取余
  6. client denied by server configuration
  7. epoll使用详解(精髓)
  8. HDOJ 5063 Operation the Sequence
  9. 想要见识外太空?一款VR头显就能帮你实现梦想
  10. 鼠标点击 input,显示瞬间的边框颜色,对之修改与隐藏
  11. TensorFlow框架(1)之Computational Graph详解
  12. 原型模式(Prototype)
  13. 【Zabbix】 ZBX的豆知识
  14. unity实现玻璃效果
  15. Python使用Ctypes与C/C++ DLL文件通信过程介绍及实例分析
  16. 角度&弧度转换
  17. python学习笔记(1)python中的注释和安装python
  18. vue 的进度条组件
  19. Java并发编程:JMM (Java内存模型) 以及与volatile关键字详解
  20. python——处理xls表格

热门文章

  1. x-debug配置简述 - chunyu
  2. 各种边框样式。。本以为border不是这么用的。
  3. (mac)Android Studio安装以及Fetching android sdk component information超时的解决方案
  4. <一道题>abc+cba=1333,求满足条件的abc的值,隐含条件a!=0,c!=0
  5. Awk中调用shell命令
  6. SQL获取变量类型以及变量最大长度
  7. 使用python获得git中分支存成list
  8. POJ3321 Apple Tree (树状数组)
  9. 微信内置浏览器图片查看方式的原生实现(非jssdk)
  10. android 工具类之SharePreference