我已经做了4屏幕尺寸,和4密度为Android屏幕尺寸suppor一些阅读。我希望得到一个快速的原型应用程序运行起来。是否有任何类型的策略这还是我应该只是(根据设备尺寸+密度主要用于%的)设计为正常屏幕尺寸与MED +高+ xhigh DPI?有没有最好的做法在这里?
I've been doing some reading on 4-screen sizes, and 4-densities for Android screen size suppor. I want to get a quick prototype app up and running. Is there any type of strategy for this or should I just (based on device size+density mostly used %'s) design for the normal screensize with med+high+xhigh dpi? Is there a best practice here?
推荐答案
//开始设计MDPI第一个
//start design for MDPI first
Baseline phone mdpi 320x480
这是,你可以增加你的可绘制的 1.5 为华电国际
和 2 为 XHDPI
from that you can increase you drawables as 1.5 for HDPI
and 2 for XHDPI
TVDPI它将使用华电国际
资产自动缩放。 一百六分之二百十三= 1.33
TVDPI it will scale automatically by using HDPI
assets. 213/160 =1.33
参考这里:
1. Use wrap_content, fill_parent, or dp units when specifying
dimensions in an XML layout file.
2. Do not use hard coded pixel values in your application code
3. Do not use AbsoluteLayout (it's deprecated)
4. Supply alternative bitmap drawables for different screen densities
相关推荐
最新文章