语言

Window.SetDefaultWindowFormat(Int32) 方法

定义

根据 PixelFormat 类型设置窗口的默认格式。

[Android.Runtime.Register("setDefaultWindowFormat", "(I)V", "GetSetDefaultWindowFormat_IHandler")]
protected virtual void SetDefaultWindowFormat(int format);
[<Android.Runtime.Register("setDefaultWindowFormat", "(I)V", "GetSetDefaultWindowFormat_IHandler")>]
abstract member SetDefaultWindowFormat : int -> unit
override this.SetDefaultWindowFormat : int -> unit

参数

format
Int32

新窗口格式(请参阅 PixelFormat)。

属性

注解

根据 PixelFormat 类型设置窗口的默认格式。 这是将使用的格式,除非客户端使用 setFormat() 以显式格式指定;

Java文档android.view.Window.setDefaultWindowFormat(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅