Orientation Enum

Definition

Enumerates values returned by several types.

public enum Orientation
type Orientation = 
Inheritance
Orientation

Fields

Name Value Description
Undefined 0

Constant for Orientation: a value indicating that no value has been set.

Portrait 1

Indicates portrait orientation, corresponding to the port resource qualifier.

Landscape 2

Indicates landscape orientation, corresponding to the land resource qualifier.

Square 3

Indicates square orientation. This value is deprecated and is not supported or used.

Remarks

Android platform documentation for android.content.res.Configuration.

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