摘要: 1.屏幕单位 名称 单位缩写 单位全拼 介绍 屏幕尺寸 '' 或 in inch 屏幕的大小,通常用屏幕对角线的长度表示.单位是寸 屏幕分辨率 px pixels 整个屏幕的像素数,一般用屏幕的像素宽度(水平像素数)乘以像素高度表示,形如1280x720, 反之分辨率为1280x720的屏幕,像素宽 阅读全文
posted @ 2015-10-04 23:41 f9q 阅读(1827) 评论(0) 推荐(0) 编辑
摘要: Supporting Different Languages It’s always a good practice to extract UI strings from your app code and keep them in an external file. Android makes ... 阅读全文
posted @ 2015-10-04 23:12 f9q 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Supporting Different Platform Versions While the latest versions of Android often provide great APIs for your app, you should continue to support old... 阅读全文
posted @ 2015-10-04 23:08 f9q 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Implementing Adaptative UI Flows Depending on the layout that your application is currently showing, the UI flow may be different. For example, if yo... 阅读全文
posted @ 2015-10-04 20:02 f9q 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.基本思路 1,布局 多个layout目录,在layout下存放各种屏幕大小对应的布局文件,然后在values-sw600dp,values-xhdip等为各屏幕大小的布局文件生成相同的别名。注意是values-sw600dp不是layout-sw600dp 2,图片 .9图片 2.Support 阅读全文
posted @ 2015-10-04 19:52 f9q 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Supporting Different Densities This lesson shows you how to support different screen densities by providing different resources and using resolution-i 阅读全文
posted @ 2015-10-04 19:24 f9q 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 https://developer.android.com/guide/topics/display-cutout 从 Android 9 开始正式支持刘海屏。9以下的参考各厂商文档。 2.刘海屏要求 一条边缘最多只能包含一个刘海。 一台设备不能有两个以上的刘海。 设备的两条较长边缘上 阅读全文
posted @ 2015-10-04 17:12 f9q 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1.官方文档 如何支持不同尺寸的屏幕: https://developer.android.com/training/multiscreen/screensizes 有哪些资源支持备用 https://developer.android.com/guide/topics/resources/prov 阅读全文
posted @ 2015-10-04 17:08 f9q 阅读(347) 评论(0) 推荐(0) 编辑