摘要: 分辨率适配的出发点:a.根据不同的屏幕尺寸提供UI布局(layout)。 b.根据不同屏幕像素密度(单位英寸的像素值)提供界面元素的图片。1.基本概念Screen size-屏幕尺寸(Actual physical size, measured as the screen's diagonal.For simplicity, Android groups all actual screen sizes into four generalized sizes: small, normal, large, and extra large.)手机实际的物理尺寸,指屏幕对角线的长度,比如2.8 阅读全文
posted @ 2013-03-08 19:59 qiangzhu 阅读(2290) 评论(0) 推荐(0) 编辑
摘要: 比图android旋转屏幕,又竖屏到横屏,activity的生命周期onPause->onStop->onDestroy->onCreate->onStart->OnResumeAPI level 13 or higher,you should set this config instead:android:configChanges="orientation|screenSize"然后旋转屏幕,只会调用onConfigurationChanged,不会创建新activity. 阅读全文
posted @ 2013-03-08 16:59 qiangzhu 阅读(954) 评论(0) 推荐(0) 编辑