可以定义三种不同的屏幕方向:只有纵向、只有横向、纵横向,屏幕方向可以以下两个地方定义
1、项目顶部的 Project Attributes区域
'#SupportedOrientations: unspecified (表示纵横向自动适应)
'#SupportedOrientations: portrait (纵向)
'#SupportedOrientations: landscape (横向)
2、使用 Phone 库
'Phone1.SetScreenOrientation(0)'横向
'Phone1.SetScreenOrientation(1)'纵向
'Phone1.SetScreenOrientation(-1)'纵横向