本文参照自:
http://developer./reference/android/view/WindowManager.LayoutParams.htmlBRIGHTNESS系列
该系列主要用于设置window的brightness(screenBrightness/buttonBrightness)。我们可以通过WindowManager.LayoutParams的screenBrightness/buttonBrightness变量直接进行设置。
其中screenBrightness表示屏幕的brightness,而buttonBrightness表示一般按键和键盘按键的brightness
changed系列
在函数中,首先将用参数中传入的WindowManager.LayoutParams的信息复制到本WindowManager.LayoutParams中,然后返回一个整数,以bite形式表示调用该函数后WindowManager.LayoutParams的哪些信息发送了变化
成员变量
继承于ViewGroup.LayoutParams的成员变量
自身的成员变量
public static final Creator<WindowManager.LayoutParams> | CREATOR | |
public float | alpha | An alpha value to apply to this entire window. |
public float | buttonBrightness | This can be used to override the standard behavior of the button and keyboard backlights. |
public float | dimAmount | When FLAG_DIM_BEHIND is set, this is the amount of dimming to apply. |
public int | flags | Various behavioral options/flags. |
public int | format | The desired bitmap format. |
public int | gravity | Placement of window within the screen as per Gravity . |
public float | horizontalMargin | The horizontal margin, as a percentage of the container's width, between the container and the widget. |
public float | horizontalWeight | Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams. |
public int | memoryType | This field is deprecated. this is ignored |
public String | packageName | Name of the package owning this window. |
public float | screenBrightness | This can be used to override the user's preferred brightness of the screen. |
public int | screenOrientation | Specific orientation value for a window. |
public int | softInputMode | Desired operating mode for any soft input area. |
public int | systemUiVisibility | Control the visibility of the status bar. |
public IBinder | token | Identifier for this window. |
public int | type | The general type of window. |
public float | verticalMargin | The vertical margin, as a percentage of the container's height, between the container and the widget. |
public float | verticalWeight | Indicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams. |
public int | windowAnimations | A style resource defining the animations to use for this window. |
public int | x | X position for this window. |
public int | y | Y position for this window. |
成员函数
结束!