只是一个简单的小问题。我的应用程序只需要在纵向模式下工作,而横向看起来很时髦。有没有办法在应用程序中禁用横向模式?
提前致谢。
有两种方法。
1) 在您的 AppUI 的 ConstructL() 中,调用:
BaseConstructL(CAknAppUi::EAppOrientationPortrait);
2) 随时致电:
AppUi()->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
另请参阅诺基亚论坛的这篇文章。