WindowManager.LayoutParams(下)
来源:互联网 发布:组态王软件介绍 编辑:程序博客网 时间:2024/05/17 08:51
本文参照自:http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html
BRIGHTNESS系列
该系列主要用于设置window的brightness(screenBrightness/buttonBrightness)。我们可以通过WindowManager.LayoutParams的screenBrightness/buttonBrightness变量直接进行设置。
其中screenBrightness表示屏幕的brightness,而buttonBrightness表示一般按键和键盘按键的brightness
floatBRIGHTNESS_OVERRIDE_FULLValue for
indicating that the screen or button backlight brightness should be set to the hightest value
when this window is in front.
把brightness(screenBrightness/buttonBrightness)设置到最高值。floatBRIGHTNESS_OVERRIDE_NONEDefault value for
不对brightness(screenBrightness/buttonBrightness)重新进行设置,采用默认的普通值。floatBRIGHTNESS_OVERRIDE_OFFValue for
把brightness(screenBrightness/buttonBrightness)设置到最低值。public int heightInformation about how tall the view wants to be.public LayoutAnimationController.AnimationParameters layoutAnimationParametersUsed to animate layouts.public int widthInformation about how wide the view wants to be.public static final Creator<WindowManager.LayoutParams> CREATOR public float alphaAn alpha value to apply to this entire window.public float buttonBrightnessThis can be used to override the standard behavior of the button and keyboard backlights.public float dimAmountWhen public int flagsVarious behavioral options/flags.public int formatThe desired bitmap format.public int gravityPlacement of window within the screen as per public float horizontalMarginThe horizontal margin, as a percentage of the container's width, between the container and the widget.public float horizontalWeightIndicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams.public int memoryTypeThis field is deprecated. this is ignoredpublic String packageNameName of the package owning this window.public float screenBrightnessThis can be used to override the user's preferred brightness of the screen.public int screenOrientationSpecific orientation value for a window.public int softInputModeDesired operating mode for any soft input area.public int systemUiVisibilityControl the visibility of the status bar.public IBinder tokenIdentifier for this window.public int typeThe general type of window.public float verticalMarginThe vertical margin, as a percentage of the container's height, between the container and the widget.public float verticalWeightIndicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams.public int windowAnimationsA style resource defining the animations to use for this window.public int xX position for this window.public int yY position for this window.ublic Methods final int copyFrom(WindowManager.LayoutParams o) String debug(String output) int describeContents() final CharSequence getTitle() static boolean mayUseInputMethod(int flags) final void setTitle(CharSequence title) String toString() void writeToParcel(Parcel out, int parcelableFlags)
screenBrightness
and buttonBrightness
indicating that the screen or button backlight brightness should be set to the hightest value
when this window is in front.
把brightness(screenBrightness/buttonBrightness)设置到最高值。floatBRIGHTNESS_OVERRIDE_NONEDefault value for
screenBrightness
and buttonBrightness
indicating that the brightness value is not overridden for this window and normal brightness policy should be used.不对brightness(screenBrightness/buttonBrightness)重新进行设置,采用默认的普通值。floatBRIGHTNESS_OVERRIDE_OFFValue for
screenBrightness
and buttonBrightness
indicating that the screen or button backlight brightness should be set to the lowest value when this window is in front.把brightness(screenBrightness/buttonBrightness)设置到最低值。
changed系列
该系列主要用于 int copyFrom (WindowManager.LayoutParams o)函数中。
在函数中,首先将用参数中传入的WindowManager.LayoutParams的信息复制到本WindowManager.LayoutParams中,然后返回一个整数,以bite形式表示调用该函数后WindowManager.LayoutParams的哪些信息发送了变化
intALPHA_CHANGED用于表示成员变量alpha是否被改变intANIMATION_CHANGED用于表示成员变量windowAnimations是否被改变intDIM_AMOUNT_CHANGED用于表示成员变量dimAmount是否被改变intFLAGS_CHANGED用于表示成员变量flags是否被改变intLAYOUT_CHANGED用于表示layout是否被改变.这里的layout是指以下变量所包含的信息:
width,height,x,y, verticalMargin,verticalWeight,horizontalMargin,horizontalWeightintSCREEN_BRIGHTNESS_CHANGED用于表示brightness是否被改变.
这里的brightness是指以下变量对应的信息:screenBrightness,buttonBrightnessintSCREEN_ORIENTATION_CHANGED用于表示成员变量screenOrientation是否被改变intSOFT_INPUT_MODE_CHANGED用于表示成员变量softInputMode是否被改变intTITLE_CHANGED用于表示成员变量title是否被改变intTYPE_CHANGED用于表示成员变量type是否被改变intFORMAT_CHANGEDConstant Value: 8 (0x00000008)
用于表示成员变量format是否被改变
width,height,x,y, verticalMargin,verticalWeight,horizontalMargin,horizontalWeightintSCREEN_BRIGHTNESS_CHANGED用于表示brightness是否被改变.
这里的brightness是指以下变量对应的信息:screenBrightness,buttonBrightnessintSCREEN_ORIENTATION_CHANGED用于表示成员变量screenOrientation是否被改变intSOFT_INPUT_MODE_CHANGED用于表示成员变量softInputMode是否被改变intTITLE_CHANGED用于表示成员变量title是否被改变intTYPE_CHANGED用于表示成员变量type是否被改变intFORMAT_CHANGEDConstant Value: 8 (0x00000008)
用于表示成员变量format是否被改变
成员变量
继承于ViewGroup.LayoutParams的成员变量
自身的成员变量
FLAG_DIM_BEHIND
is set, this is the amount of dimming to apply.Gravity
.成员函数
Returns a String representation of this set of layout parameters.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Given a particular set of window manager flags, determine whether such a window may be a target for an input method when it has focus.
Returns a string containing a concise, human-readable description of this object.
Flatten this object in to a Parcel.
结束!
0 0
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(下)
- Android--WindowManager.LayoutParams(下)
- view/WindowManager.LayoutParams 下
- Android--WindowManager.LayoutParams(下)
- WindowManager.LayoutParams(上)
- WindowManager.LayoutParams(上)
- WindowManager.LayoutParams(上)
- WindowManager.LayoutParams(上)
- WindowManager.LayoutParams(上)
- WindowManager.LayoutParams(上)
- WindowManager.LayoutParams(上)
- 约瑟夫环
- kmp算法
- 证书不匹配或者出了其他问题的解决执法
- 【闲聊】写给毕业生们的一些话
- WindowManager.LayoutParams(下)
- 公告:CSDN博客频道支持Windows Live Writer离线写博客啦
- OpenGL画曲线
- 正则表达式规范
- window.clearInterval()方法和window.setInterval()方法
- LVM使用手册
- JavaScript跨域总结与解决办法
- 解析select
- cmpp短信开发的一些资料