FlexForm Properties

The properties for FlexForm widget are as follows.



Android Screen Orientation Values

Value Description
SCREEN_ORIENTATION_PORTRAIT

The developer wants to display the screen in the portrait orientation,

The display ignores the sensor data and is more taller than it is wide.

SCREEN_ORIENTATION_REVERSE_PORTRAIT

The developer wants to display the screen in the portrait orientation,

However, the screen is turned in the opposite direction of the normal portrait orientation.

SCREEN_ORIENTATION_SENSOR_PORTRAIT

The developer wants to display the screen in the portrait orientation,

However, the developer uses the sensor data to determine the direction that the screen must face.

SCREEN_ORIENTATION_USER_PORTRAIT

The developer wants to display the screen in the portrait orientation,

However, if the user has enabled sensor-based rotation, developers can use the sensor to determine the direction that the screen must face,

SCREEN_ORIENTATION_LANDSCAPE

The developer wants to display the screen in the landscape orientation,

The display ignores the sensor data and is more wider than it is tall.

SCREEN_ORIENTATION_REVERSE_LANDSCAPE

The developer wants to display the screen in the landscape orientation,

However, the screen is turned in the opposite direction of the normal landscape orientation.

SCREEN_ORIENTATION_SENSOR_LANDSCAPE

The developer wants to display the screen in the landscape orientation,

However, the developer uses the sensor data to determine the direction that the screen must face.

SCREEN_ORIENTATION_USER_LANDSCAPE

The developer wants to display the screen in the landscape orientation,

However, if the user has enabled sensor-based rotation, developers can use the sensor to determine the direction that the screen must face,

SCREEN_ORIENTATION_UNSPECIFIED The developer has not specified the orientation preference, and lets the system decide the best possible orientation. This will either be the user's preferred orientation for this activity (if this activity is at the bottom of a task) or the orientation selected by the activity. If the user has explicitly turned off sensor-based orientation from the settings, the sensor-based device rotation will be ignored. If the user has not turned off sensor-based orientation, sensor-based orientation will be considered, by default. When sensor-based orientation is enabled, the orientation changes based on the movement of the device.
SCREEN_ORIENTATION_BEHIND The screen is displayed in the same orientation as whatever is behind this activity.
SCREEN_ORIENTATION_FULL_SENSOR

Orientation is determined by a physical orientation sensor. The display rotates based on the movement of the device.

The screen is displayed in any of the 4 possible rotations, regardless of what the device will usually display (for example, most devices will generally not use 180 degree rotation).

SCREEN_ORIENTATION_FULL_USER Takes the user's sensor-based rotation preference into account. However, if the user has enabled sensor-based rotation, the screen is displayed in all the four possible directions, regardless of what the device would usually display (for example, most devices will generally not use 180 degree rotation).
SCREEN_ORIENTATION_LOCKED The screen is locked at its current rotation, regardless of the direction.
SCREEN_ORIENTATION_NOSENSOR

The app always ignores the orientation determined by the orientation sensor.

The display does not rotate when the user moves the device.

SCREEN_ORIENTATION_SENSOR

The screen orientation is determined by a physical orientation sensor.

The display ignores the user's setting to turn off sensor-based rotation, and rotates based on the movement of the device.

SCREEN_ORIENTATION_USER The screen is displayed in the orientation that is currently set as preferred on the device.