2013-05-03 70 views
0

大家好我是Sherlock Actionbar中的新成员我在示例应用程序中遇到了一个非常奇怪的问题。问题是,当我从肖像旋转到横向时,其行为是正常的,但是当我旋转回肖像模式时,布局不会变回肖像模式。操作栏中的屏幕旋转错误

下面是我面对的问题的屏幕截图。

OriginalScreen enter image description here

难道旋转为横向 enter image description here

模式 enter image description here

再次转回原来的方向,即纵向正如你可以看到,在第三解决问题我正面临着。

我正在使用ActionbarSherlock库的最新版本。

编辑 我的清单文件

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.example.actionbar_sherlockexample" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="17" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="com.example.actionbar_sherlockexample.MainActivity" 
     android:theme="@style/Theme.Sherlock" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
</application> 

</manifest> 

感谢

+0

告诉我们你的Android清单文件..你用过android:confing吗? – 2013-05-03 07:04:37

+0

@ Dhawal Sodha我已经编辑了我的问题,您可以看到我的清单文件 – 2013-05-03 07:10:07

回答

1

这是模拟器的问题。如果你将在真实的设备上运行它,它会正常工作。

+0

通常它会在x64操作系统上使用仿真器版本3.0及更高版本。 – Jan 2013-05-03 07:47:02