How to cut graphs?Understanding The size of the iphone interface
The minimum resolution is 320x480, which we set as the reference interface size (baseline), and the icon for the reference size is set to 1 times the figure (1x).
in the actual design process, in order to reduce the design cost, generally take the highest resolution of the device as the original size of the design manuscript, take iphone This is iphone55s 640x1136iphone44s 640x960 because the width is 640px , They are the same standard for cut charts. Obviously, the reference size of the 1320px640px2 Times graph ( 2x).
One might ask: Why not take 320px as the original size of the design manuscript? Because 1 times the magnification of the graph becomes 2 times more than 2 times the figure is reduced to 1 times the figure is blurred!
So, without considering the iphone6 and iphone 6 Plus, each icon needs to be cut two copies in order to fit the iphone.
Android- a wider range of interface sizes
Android Open Source Freedom is the price of equipment is not controllable, the market is flooded with various brands of Android phones, with a variety of sizes and resolutions, in order to adapt to a variety of different resolutions of the device, the same icon needs to be cut into N One size for each copy.
In addition to note that androiddp< Span lang= "ZH-CN" or sp (dpspiphonepx ...
For Android devices with a wide range of resolutions , in order to facilitate native app interface adaptation,Google divides them into 4 mode at a dpi size (MDPI, HDPI,XHDPI and xxhdpimay one day increase the fifth kind of xxxhdpi, who knows it):
See here, the traditional web front-end students may have been messy, theiphone with px,android with DP, and visual design is unified with the px, How to use px as the unit of the PSD to use DP as the unit of Android app transduction ah ???
Obviously, we have to spend some brain cells to figure out The conversion relationship between PX and DP.
The conversion relationship between px and DP
In general, the resolution of the phone and the operatingdpi mode is matched, for example HVGA (320x480 pixels ) mobile screen generally in 3.5 about, running in mdpi mode. When running under mdpi1dp=1px: That is to say designers 320x480 as the dimensions of the design, in psitem high 48pxitem high 48dp; Photoshop 14px large font, development will be defined as 14sp
For aWvga(480x800 pixels) of the mobile phone (g7, n1ns mode. When running in hdpi mode, 1dp=1.5px: That is to say, the designer Span lang= "en-US" >480x800 as the dimensions of the design, in psitem high 72pxitem high 48dp; Photoshop 21px large font, development will be defined as 14sp
For more details on PX and DP , please refer to the article http://www.zhihu.com/question/19625584
IPhone app cut size corresponds to the size of the Android app cut graph
In Android apps, the MDPI is the benchmark interface size, which corresponds to the reference interface Size (320x480) of the iphone app mentioned above, and the required Chetutu is labeled iphone The corresponding 1 times the graph, theXHDPI corresponds to 2 times the graph,HDPI and xxhdpi and so on .
Another way to look at it: if you want to make an app with the lowest design cost , the same design for the iphone and Android versions, the design is best 640x960 pixels in size . Because the size of this cut-out icon covers the iphone 3 ~ 5 resolution, as well as Android MDPI,HDPI,XHDPI mode. The XXHDPI mode automatically enlarges the display with the lower-level XHDPI icon.
To give the tool a cut chart
See the above mentioned the various interface dimensions, if all hand-cut, once cut you can endure. If you have finished cutting all kinds of icons to add, modify, and not a few times you will probably crash blood spray screen ~
Fortunately, we have some very good transduction tools to use, specific ways to refer to their official website tutorial.
Recommended Diagram Tool 1- cut&slice me
Recommended Diagram Tool 2- cutterman
Recommended tool for cutting diagrams 3-devrocket
Note: Damao recommend, see the official website seems very strong appearance, but charge Oh.
Summary
With the help of tools, the transduction in the native App is easy to use, but the question of "one icon to cut multiple sets of sizes" remains unchanged, is there a better icon solution? For example, how to apply an icon font in a Web app? Look forward to the Iconfont app in the native app.
Resources
- Http://www.zcool.com.cn/article/ZNTMwOTI=.html
- http://blog.csdn.net/iunion/article/details/9449703
What happened to native app Transduction