Application Orientation

From Appmethod Topics
Jump to: navigation, search

Go Up to Project Options Dialog Box

Project > Options > Application > Orientation

Sets the orientation to your mobile application.

Note: This option appears only for FireMonkey Mobile applications, for iOS and Android.

ApplicationOrientation.png

Orientation on iOS Devices

Field Description
Enable custom orientation Check this checkbox so that you can limit or specify the orientations that your iOS app supports.
For example, to always display your iOS app in portrait orientation, check the Enable custom orientation and Portrait checkboxes.

iOS devices support rotation of the form in the following directions:

  • iPad: Rotates in all directions
  • iPhone and iPod Touch: Rotates in all directions except upside down

If Enable custom orientation is not checked, then the orientation of your app responds to the default rotations, according to the iOS device.

Portrait iOS app displays in a vertical (portrait) orientation.

Upside down

iOS app displays in a vertical orientation, but upside down, with the device's Home button on the top instead of on the bottom.
Landscape home right iOS app displays in a horizontal (landscape) orientation with the device's Home button on the right.
Landscape home left iOS app displays in a horizontal (landscape) orientation with the device's Home button on the left.

Orientation on Android Devices

Field Description
Enable custom orientation

Check this checkbox so that you can limit or specify the orientations that your Android app supports.
For example, to always display your Android app in portrait orientation, check the Enable custom orientation and Portrait checkboxes.

Android devices support rotation of the form in all directions.

Portrait Android app displays in a vertical (portrait) orientation.
Upside down Android app displays in a vertical orientation, but upside down, with the device's Home button on the top instead of on the bottom.
Landscape home right Android app displays in a horizontal (landscape) orientation with the device's Home button on the right.
Landscape home left Android app displays in a horizontal (landscape) orientation with the device's Home button on the left.

Notes about Orientation for Android

  • If Enable custom orientation is not checked, or if it is checked and all four orientations are also checked, then your app uses the default rotations, according to the Android device.
  • If you check both Landscape home left and Landscape home right, your Android app uses only one of these, typically Landscape home right.
  • If you check both Portrait and Upside Down, your Android app uses only Portrait.

See Also