它的屏幕大小和密度,我应该设计的Andr​​oid呢? [英] Which screen size and density should I design Android for?

查看:96
本文介绍了它的屏幕大小和密度,我应该设计的Andr​​oid呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了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

这篇关于它的屏幕大小和密度,我应该设计的Andr​​oid呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆