vsping - 国外主机测评,国外VPS,国外服务器,国外云服务器,测评及优惠码vsping - 国外主机测评,国外VPS,国外服务器,国外云服务器,测评及优惠码国外主机测评 - 国外VPS,国外服务器,国外云服务器,测评及优惠码

鸿蒙OS Ability Ability.WindowAttributeHelper

帮助您使用 Intent 设置当前应用程序的窗口属性。 此类将窗口的填充设置封装在 Intent 中,并且您无需关心数据的存储方式。 构造器摘要 建设者 描述 WindowAttributeHelper(Intent intentAttribute) 用于创建 WindowAttributeHelper 实例的参数化构造函数。 方法总结 修饰符和类型 方法 描述 Ability.WindowAttributeHelpe setBottomPadding(int 底部) 设置窗口的底部填充。 Ability.WindowAttributeHelper setLeftPadding(向左整数) 设置窗口的左填充。 Ability.WindowAttributeHelper setRightPadding(int 右) 设置窗口的右填充。 Ability.WindowAttributeHelper setTopPadding(int 顶部) 设置窗口的顶部填充。 从类 java.lang 继承的方法。object clone,equals,finalize,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait 构造器详细信息 窗口属性助手 public WindowAttributeHelper(Intent intentAttribute) 用于创建 WindowAttributeHelper 实例的参数化构造函数。 调用 WindowAttributeHelper 提供的设置方法后,实例中携带的 Intent 将自动存储属性设置。 参数: 参数名称 参数说明 intentAttribute 指示用于存储窗口属性的 Intent。 方法细节 设置左填充 public Ability.WindowAttributeHelper setLeftPadding(int left) 设置窗口的左填充。 参数: 参数名称 参数说明 剩下 指示要设置的窗口的左填充(以像素为单位) 返回值: 返回具有指定左填充的 WindowAttributeHelper 对象。 设置上填充 public Ability.WindowAttributeHelper setTopPadding(int top) 设置窗口的顶部填充。 参数: 参数名称 参数说明 最佳 指示要设置的窗口的顶部填充,以像素为单位 返回值: 返回具有指定顶部填充的 WindowAttributeHelper 对象。 设置右填充 public Ability.WindowAttributeHelper setRightPadding(int right) 设置窗口的右填充。 参数: 参数名称 参数说明 对 指示要设置的窗口的右填充,以像素为单位 返回值: 返回具有指定右填充的 WindowAttributeHelper 对象。 设置底部填充 public Ability.WindowAttributeHelper setBottomPadding(int bottom) 设置窗口的底部填充。 参数: 参数名称 参数说明 底部 指示要设置的窗口的底部填充,以像素为单位。 返回值: 返回具有指定底部填充的 WindowAttributeHelper 对象。

优惠码

鸿蒙OS Ability Ability.LayoutParamsHelper

帮助您使用 Intent 设置应用程序启动窗口的布局参数。 构造器摘要 建设者 描述 LayoutParamsHelper(Intent intentLayout) 方法总结 修饰符和类型 方法 描述 Ability.LayoutParamsHelper setAlpha(float alpha) 设置窗口的 Alpha。 Ability.LayoutParamsHelper setDimAmount(float dimAmount) 设置窗口后的暗淡量。 Ability.LayoutParamsHelper setFlags(int 标志,int 掩码) 设置窗口的标志。 Ability.LayoutParamsHelper setGravity(int 引力) 设置窗口的重力。 Ability.LayoutParamsHelper setHeight](https://developer.harmonyos.com/en/docs/documentation/doc-references/ability_layoutparamshelper-0000001054119936#ZH-CN_TOPIC_0000001054119936__setHeight-int-)(int 高度) 设置窗口的高度。 Ability.LayoutParamsHelper setWidth(int 宽度) 设置窗口的宽度。 Ability.LayoutParamsHelper setX(int x) 设置窗口的X坐标。 Ability.LayoutParamsHelper setY(int y) 设置窗口的Y坐标。 从类 java.lang 继承的方法。object clone,equals,finalize,getClass,hashCode,notify,notifyAll,toString,wait,wait,wait 构造器详细信息 布局参数助手 public LayoutParamsHelper(Intent intentLayout) 方法细节 设置 X public Ability.LayoutParamsHelper setX(int x) 设置窗口的 X 坐标。 参数: 参数名称 参数说明 X 指示在 WindowManager.LayoutConfig.x中设置的 X 坐标。 返回值: 返回具有指定X坐标的 LayoutParamsHelper 对象。 设定 public Ability.LayoutParamsHelper setY(int y) 设置窗口的Y坐标。 参数: 参数名称 参数说明 ÿ 指示在 WindowManager.LayoutConfig.y中 设置的 Y 坐标。 返回值: 返回具有指定 Y 坐标的 LayoutParamsHelper 对象。 设置宽度 public Ability.LayoutParamsHelper setWidth(int width) 设置窗口的宽度。 参数: 参数名称 参数说明 宽度 指示在 WindowManager.LayoutConfig.width中 设置的宽度。 返回值: 返回具有指定宽度的 LayoutParamsHelper 对象。 设置高度 public Ability.LayoutParamsHelper setHeight(int height) 设置窗口的高度。 参数: 参数名称 参数说明 高度 指示在 WindowManager.LayoutConfig.height中](https://www.w3cschool.cn/harmonyos/harmonyos-5a1w3cys.html)设置的高度。 返回值: 返回具有指定高度的 LayoutParamsHelper 对象。 setAlpha public Ability.LayoutParamsHelper setAlpha(float alpha) 设置窗口的 Alpha。 参数: 参数名称 参数说明...

优惠码