Android 说说WindowManager.LayoutParams类(三)

8. public int gravity;
       gravity 属性。什么是gravity属性呢?简单地说,就是窗口如何停靠。

       9. public float horizontalMargin;
       水平边距,容器与widget之间的距离,占容器宽度的百分率。

       10. public float verticalMargin;
       纵向边距。

       11. public int format;
       期望的位图格式。默认为不透明。参考android.graphics.PixelFormat。

       12. public int windowAnimations;
       窗口所使用的动画设置。它必须是一个系统资源而不是应用程序资源,因为窗口管理器不能访问应用程序。

       13. public float alpha = 1.0f;
       整个窗口的半透明值,1.0表示不透明,0.0表示全透明。

       14. public float dimAmount = 1.0f;
       当FLAG_DIM_BEHIND设置后生效。该变量指示后面的窗口变暗的程度。
       1.0表示完全不透明,0.0表示没有变暗。

       15. public float screenBrightness = -1.0f;
       用来覆盖用户设置的屏幕亮度。表示应用用户设置的屏幕亮度。
       从0到1调整亮度从暗到最亮发生变化。

       16. public IBinder token = null;
       窗口的标示符。( Identifier for this window. This will usually be filled in for you. )

       17. public String packageName = null;
       此窗口所在的包名。

       18. public int screenOrientation =ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
       屏幕方向,参见android.content.pm.ActivityInfo#screenOrientation。

       19. 在兼容模式下,备份/恢复参数所使用的内部缓冲区。
       public int[] mCompatibilityParamsBackup = null;


系列之Android 说说WindowManager.LayoutParams类(一)的帖子链接
http://www.eoeandroid.com/thread-84919-1-1.html
系列之Android 说说WindowManager.LayoutParams类(二)的帖子链接
http://www.eoeandroid.com/thread-84921-1-1.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值