zoukankan      html  css  js  c++  java
  • Android开发中的drawable(hdpi,mdpi,ldpi)和WVGA,HVGA,QVGA的区别以及联系

    Android开发中的drawable-(hdpi,mdpi,ldpi)和WVGA,HVGA,QVGA的区别以及联系

     

    Launcher icons should be 32-bit PNGs with an alpha channel for transparency. The finished launcher icon dimensions corresponding to a given generalized screen density are shown in the table below.

    Table 1. Summary of finished launcher icon dimensions for each generalized screen density.

     ldpi (120 dpi)
    (Low density screen)
    mdpi (160 dpi)
    (Medium density screen)
    hdpi (240 dpi)
    (High density screen)
    xhdpi (320 dpi)
    (Extra-high density screen)
    Launcher Icon Size 36 x 36 px 48 x 48 px 72 x 72 px 96 x 96 px

    You can also include a few pixels of padding in launcher icons to maintain a consistent visual weight with adjacent icons. For example, a 96 x 96 pixel xhdpi launcher icon can contain a 88 x 88 pixel shape with 4 pixels on each side for padding. This padding can also be used to make room for a subtle drop shadow, which can help ensure that launcher icons are legible across on any background color.

    Application Icons  以上为应用图标在各分辨率条件下的尺寸 

    1.drawable-(hdpi,mdpi,ldpi)的区别
    dpi是“dot per inch”的缩写,每英寸像素数。
    四种密度分类: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (extra high)
    一般情况下的普通屏幕:ldpi是120,mdpi是160,hdpi是240,xhdpi是320。

    2.WVGA,HVGA,QVGA的区别
    VGA是”Video Graphics Array”,显示标准为640*480。
    WVGA(Wide VGA)分辨率为480*800
    HVGA(Half VGA)即VGA的一半分辨率为320*480
    QVGA(Quarter VGA)即VGA非四分之一分辨率为240*320

    3.drawable-(hdpi,mdpi,ldpi)和WVGA,HVGA,QVGA的联系
    hdpi里面主要放高分辨率的图片,如WVGA (480×800),FWVGA (480×854)
    mdpi里面主要放中等分辨率的图片,如HVGA (320×480)
    ldpi里面主要放低分辨率的图片,如QVGA (240×320)
    系统会根据机器的分辨率来分别到这几个文件夹里面去找对应的图片

  • 相关阅读:
    C# 根据实体将DataTable拆分成表头表体
    html KeyDown 当键盘按下时 获取所按键的Code
    Linq ExecuteQuery,ExecuteCommand
    Linq To Object
    Var To DataTable
    Linq to SQL 基础篇
    反射生成SQL语句
    Ajax跨域请求ashx文件与Webservice文件
    Ajax调用WebService
    DataTableToJson
  • 原文地址:https://www.cnblogs.com/fx2008/p/3133773.html
Copyright © 2011-2022 走看看