Freigeben über


Display.Mode.PhysicalWidth Property

Definition

Returns the physical width of the display in pixels when configured in this mode's resolution.

public int PhysicalWidth { [Android.Runtime.Register("getPhysicalWidth", "()I", "", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getPhysicalWidth", "()I", "", ApiSince=23)>]
member this.PhysicalWidth : int

Property Value

Attributes

Remarks

Returns the physical width of the display in pixels when configured in this mode's resolution.

Note that due to application UI scaling, the number of pixels made available to applications when the mode is active (as reported by Display#getWidth() may differ from the mode's actual resolution (as reported by this function).

For example, applications running on a 4K display may have their UI laid out and rendered in 1080p and then scaled up. Applications can take advantage of the extra resolution by rendering content through a android.view.SurfaceView using full size buffers.

Java documentation for android.view.Display.Mode.getPhysicalWidth().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to