Android ListView 的布局图标大小设置

List View Icons

New Guides for App Designers!

Check out the new documents for designers at Android Design, including more guidelines for Iconography.

List view icons look a lot like dialog icons, but they use an inner shadow effect where the light source is above the object. They are also designed to be used only in a ListView. Examples include the Settings application.

As described in Providing Density-Specific Icon Sets, you should create separate icon sets for low-, medium-, and high-density screens. This ensures that your icons will display properly across the range of devices on which your application can be installed. See Table 1 for a listing of the recommended finished icon sizes for each density. Also, see Tips for Designers for suggestions on how to work with multiple sets of icons.

Table 1. Summary of finished list view icon dimensions for each of the three generalized screen densities.

Low density screen (ldpi)Medium density screen (mdpi)High density screen (hdpi)
24 x 24 px32 x 32 px48 x 48 px

Final art must be exported as a transparent PNG file. Do not include a background color.

Templates for creating icons in Adobe Photoshop are available in the Icon Templates Pack.

All Android Versions


The following guidelines describe how to design dialog icons for all versions of the Android platform.

Structure

  • A list view icon normally has a 1 px safeframe, but it is OK to use the safeframe area for the edge of the anti-alias of a round shape.
  • All dimensions specified are based on a 32x32 pixel artboard size in Photoshop. Keep 1 pixel of padding around the bounding box inside the template.
A view of listview icon structure.

Figure 1. Safeframe and fill gradient for list view icons. Icon size is 32x32.

Light, effects, and shadows

List view icons are flat and pictured face-on with an inner shadow. Built up by a light gradient and inner shadow, they stand out well on a dark background.

A viewof light, effects, and shadows for list view icons.

Figure 2. Light, effects, and shadows for list view icons.

1.Inner shadow:black | 57 % opacity | angle 120° | blend mode normal | distance 1px | size 1px 
2.Background: black | standard system color 
These icons are displayed in list views only.
Note: The list view icon sits on 32x32 px artboard in Photoshop, without a safeframe.
Step by step
  1. Add the effects seen in Figure 2 for the proper filter.
  2. Export the icon at 32x32 as a PNG file with transparency enabled.
  3. Create the basic shapes using a tool like Adobe Illustrator.
  4. Import the shape into a tool like Adobe Photoshop and scale to fit an image of 32x32 px on a transparent background.

转载于:https://www.cnblogs.com/wangmingshuo/archive/2012/11/28/3323404.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值