2013-01-04 40 views

回答

0

添加下面的清单档案中的时候,你会旋转屏幕将改变

<activity 
      android:name=".Login" 
      android:configChanges="keyboardHidden|orientation" 

      > 
     </activity> 



android:screenOrientation=["unspecified" | "user" | "behind" | 
            "landscape" | "portrait" | 
            "reverseLandscape" | "reversePortrait" | 
            "sensorLandscape" | "sensorPortrait" | 
            "sensor" | "fullSensor" | "nosensor"] 
+0

我无法添加android:screenOrientation = [“unspecified”| “用户”| “后面”| “风景”| “肖像”| “reverseLandscape”| “reversePortrait”| “sensorLandscape”| “sensorPortrait”| “传感器”| “fullSensor”| “nosensor”]到我的清单文件。它只需要一个参数定位 – sanjeev

+0

是@sanjeev您不能一次添加横向和条纹。 – Janmejoy

+0

我手动编辑了清单。但是,当我再次部署清单文件时。我只想设置风景模式。我该如何解决这个问题。 –