Android onConfigurationChanged 不执行
时间:2014-04-16 21:45:59
收藏:0
阅读:485
自从Android 3.2(API 13),screen size也开始跟着设备的横竖切换而改变。
所以,在AndroidManifest.xml里设置的MiniSdkVersion和 TargetSdkVersion属性大于等于13的情况下,
如果你想阻止程序在运行时重新加载Activity,除了设置"orientation",你还必须设置"ScreenSize"。
解决方法:
AndroidManifest.xml中设置android:configChanges="orientation|screenSize“
Android onConfigurationChanged 不执行,布布扣,bubuko.com
原文:http://www.cnblogs.com/lovewife/p/3665634.html
评论(0)