我的设备是没有重力传感器的,屏幕默认显示是竖直方向,现在需要把屏幕显示方向顺时针旋转270度,横屏显示。我在androidManifest.xml中设置了android:screenOrientation="landscape"但只能显示顺时针旋转90度后的横屏。请教各位大侠,尽量说详细点

解决方案 »

  1.   

    用android:screenOrientation="reverseLandscape"试试
      

  2.   

    用这个android:screenOrientation="reverseLandscape"报错:
    error: Error: String types not allowed (at 'screenOrientation' with value 'reverseLandscape').
      

  3.   

    可能你的android版本低了,在manifest.xml里输入android:screenOrientation= 后会自动提示支持的string types。
      

  4.   

    楼主是需要修改系统显示方向还是APK的显示方向?
    如果是系统的,在系统framework里头修改,如果是APK,androidManifest.xml里头肯定有可以设置的地方。
      

  5.   

    用这个确实可以 android:screenOrientation="reverseLandscape"  我的eclipse有问题