我的環境使用Sencha觸摸& PhoneGap。我可以用垂直方向鎖定方向嗎?我不希望用戶使用水平方向進行操作。如何用Sencha-touch鎖定方向?
launch: function() {
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
// Initialize the main view
Ext.Viewport.add(Ext.create('ebook.view.Main'));
},
我需要添加一些控制或配置午餐功能?或者我需要將控件添加到main.js.我的目的是我想鎖定「垂直方向」的方向。有誰可以幫助我。謝謝。
其他編號: 我在「package.json」找到了下面的代碼,我嘗試刪除「landscapeLeft」&「landscapeRight」並重建它得到了相同的結果。我無法鎖定用戶的方向。
/**
* @cfg {Array[String]} orientations
* @required
* This is orientations that this application can run.
*/
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
但是,只有一個活動,當我們使用Apache科爾多瓦。所以編寫這個將鎖定整個應用程序的肖像?是否可以鎖定縱向單個屏幕? – Diffy 2014-06-11 11:22:51