摘要: 第一步:AndroidManifest.xml 在Activity添加以下一个属性android:configChanges="orientation|keyboardHidden|screenSize" android:screenOrientation="sensor",为的是能够横竖屏切换不用再次调用onCreate方法,直接调用onConfigurationChanged方法。screenSize是兼容4.0系统的才可以生效,否则方法没效。<application android:label="@string/app_name&q 阅读全文
posted @ 2012-08-29 13:01 吴超文 阅读(12105) 评论(7) 推荐(2) 编辑
点击右上角即可分享
微信分享提示