2012-10-10 65 views
2

我一直在做一些閱讀4屏幕尺寸和4密度的Android屏幕尺寸支持。我想獲得一個快速原型應用程序並運行。是否有任何類型的策略,或者我應該(基於設備大小+密度主要用於%)設計爲med + high + xhigh dpi的正常屏幕尺寸?這裏有最佳做法嗎?我應該爲Android設計哪種屏幕尺寸和密度?

+1

方便鏈接:http://developer.android.com/guide/practices/screens_support.html – Klaasvaak

+0

http://android-ui-utils.googlecode.com/hg/asset -Studio/DIST/index.html中 – grant

回答

2

//使用HDPI資產自動啓動設計MDPI第一

Baseline phone mdpi 320x480 

從,你可以增加你的可繪製爲1.5HDPI和爲XHDPI

TVDPI將擴大。 213/160 =1.33

Ref here:

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 
相關問題