Share via


Display.Mode.PhysicalHeight Property

Definition

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

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

Property Value

Attributes

Remarks

Returns the physical height 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#getHeight() 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.getPhysicalHeight().

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