摘要: Activity.onResume()处更新界面。 阅读全文
posted @ 2012-05-07 16:40 幻星宇 阅读(387) 评论(1) 推荐(0) 编辑
摘要: 注意:android只支持270度旋转。<activity android:name=".MyActivity" android:label="@string/app_name" android:screenOrientation="portrait">android:screenOrientation设定该活动的方向, 该值可以是任何一个下面的字符串:"unspecified"- 默认值. 由系统选择显示方向. 在不同的设备可能会有所不同."landscape"- 橫向" 阅读全文
posted @ 2012-05-07 12:06 幻星宇 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 一般在AndroidManifest.xml文件中都没有使用到android:configChanges="keyboardHidden|orientation"配置,当然还是很有用的。 就是如果配置了这个属性,当我们横竖屏切换的时候会直接调用onCreate方法中的onConfigurationChanged方法,而不会重新执行onCreate方法,那当然如果不配置这个属性的话就会重新调用onCreate方法了 阅读全文
posted @ 2012-05-07 12:02 幻星宇 阅读(143) 评论(0) 推荐(0) 编辑