在之前的版本中都是在Manifest文件中设置Activity的 android:configChanges="orientation|keyboardHidden",但是在android4.0中无效,最后发现是需要加其他一个属性:"screenSize"
改成这样就可以了 : android:configChanges="orientation|keyboardHidden|screenSize"
证实有效!
横竖屏切换使用 android:configChanges="orientation|keyboardHidden"无效
猜你喜欢
转载自luke-feng.iteye.com/blog/2252895
今日推荐
周排行