方法一:
方法二:
var win = Ti.UI.createWindow({ /* on Android, it needs to be a "heavyweight" window */ fullscreen: false , /* This works on iOS */ orientationModes: [ Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT ] }); // but for Android, you have to set it after creation win.orientationModes = [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT] |
方法二:
通过tiapp.xml文件里的安卓manifest配置重写节点来定义