There are three sizes after 2.0, 36*36/48*48/72*72, respectively.
You will see that different directories of drawable-hdpi/drawable-ldpi/drawable-mdpi are used to store icons of different sizes in androidmanifest. in XML, you only need to write @ drawable/icon. It will find the icons in different directories according to the screen resolution.
Hdpi mainly contains high-resolution images, such as WVGA (480x800) and fwvga (480X854)
The mdpi mainly contains medium-resolution images, such as hvga (320x480)
Ldpi uses low-resolution images, such as qvga (240x320)
AndroidProgramThree methods are provided for the optimal display effect:
1. Image Scaling
Based on the precision of the current screen, the platform automatically loads any images with limited sizes and precision without scaling. If the image does not match, the platform loads the default resources and the display requirements of the current interface can be met after the image is zoomed in or out. For example, if the screen is a high-precision screen, the platform loads high-precision resources (slices). If not, the platform scales the medium-precision resources to a high-precision value.
2. automatically define the pixel size and position
If the program does not support multiple precision screens, the platform automatically defines the absolute position and size values of pixels, in this way, the elements can be displayed in the same size as those on the screen with an accuracy of 160. For example, to make the WVGA high-precision screen display the same size as the traditional hvga screen, when the program does not support it, the system will say that the screen resolution of the program is 320 × 533, after the drawing is completed in the (100,100) to (150,150) area, the system will enlarge the image to the (15, 15) to () screen display area.
3. compatible with screens of larger sizes
When the current screen exceeds the upper limit of the screen supported by the program, the supports-screens element is defined, so that when the display baseline is exceeded, the platform displays a black background image here. For example, on a WVGA precision screen, if the program does not support such a large screen, the system will say that it is a 320 × 480 screen, and the excess display area will be filled with black.
But in order to achieve the best display effect, the best way is to design multiple sets of images. Then it is necessary to classify all screens based on their precision values (high and low), and then design three icons:
First, design an icon for the mainstream medium precision screen (hvga) to determine the pixel size of the image.
Scale down an image to 150% for a high-precision screen and to 75% for a low-precision screen.
Place these three sets of resources in three folders of the program: Res/drawable-mdpi/, Res/drawable-hdpi/, and Res/drawable-ldpi /. When the program is running, the platform will adjust the appropriate icon according to the screen precision.
Detailed reference: http://hi.baidu.com/%C9%B1%D6%ED%B5%B6%C6%B4%B5%B6/blog/item/6466110dcda4b1f036d122d9.html
Corner icon production: http://hym.pxue.com/blogview.asp? Logid = 51
Extension:
Android Market Account registration method: http://dev.youmi.net/2011/07/android-market-apply.html