android icon sizes and application configuration with android manifest

3
Android projects: icon sizes and application configuration with AndroidManifest.xml March 29, 2011 by Misa Filed under: Android, Android (Java), Java, Mobile phone An iPhone programmer’s question:  I have to design an app for both i Phone and Android platforms. Where’s the info.plist file and what icons and launch images do I have to include in an Android apps? What are the image sizes? I can’t find de finitions.  Thank you. Answer: Android (Google) provides great documentations. See the links below. The info.plist-like ap plication configuration can be set in the AndroidManifest.xml file. Like info.plist in iPhone projects, the manifest fi le presents essential information about the app the OS must read before it can run any of your application’s code. For details  visit this site. The Android platform makes it easy to provide icons in such a way that they will be displayed properly on any device, but you should create separate icon sets for low-, medium-, and high-density screens. Corresponding assets for different densities must use the same filenames. Icons we use f or Android 2.0 and later: Name Size (pixels) Platform marketplace_artwork.png  512 x 512 Hires application icon for Android Market. ic_app.png 72 x 72 Application icon for high-density screens. Place into the res/drawable-hdpi folder. Full size=72×72 pixels, but you should size the content area smaller than the actual bounds to create a consistent visual weight and to allow for shadows. Within this image icon content area: 60×60, so-called Square icon content area: 56×56. The recommended color palette is available here. ic_app.png 48 x 48 Application icon for medium-density screens in res/drawable-mdpi folder. Within this image -> Icon area: 40×40, Square icon area: 38×38 ic_app.png 36 x 36 Application icon for low-density screens in res/drawable-ldpi folder. Within this image -> Icon area: 30×30, Square icon area: 28×28 ic_menu.png  72 x 72 Menu icons for high-density screens. Copy into the res/drawable-hdpi folder. Transparent menu icons are placed in the options menu shown to users when they press the Menu button. They are drawn in greyscale. For details visit Android site. ic_menu.png  48 x 48 Menu icon for medium-density screens in res/drawable-mdpi folder.  ic_menu.png  36 x 36 Menu icon for low-density screens in res/drawable-ldpi folder.  ic_statusbar.png  24 (w) x 38 (h) Transparent status bar icons for high-density screens. Place into the res/drawable- hdpi-v9 folder. Content area: 24×24. Older version’s status bar icons should be placed respectively into drawable-hdpi, drawable-mdpi, drawable-ldpi folders. For details visit Android site. ic_statusbar.png  16 (w) x 25 (h) Transparent status bar icons for medium-density screens in res/drawable-mdpi-v9 folder. Content area: 16×16. ic_statusbar.png  12 (w) x 19 (h) Transparent status bar icons for low-density screens in res/drawable-ldpi-v9 folder. Content area: 12×12. ic_tab_xxxx.png  48 x 48 Tab icons are graphical elements used to represent individual tabs in a multi-tab interface. Each tab icon has two states: unselected and selected. xxxx is the actual name for the given tab item. For example: ic_tab_login_selected.png, ic_tab_login_unselected.png . Place them into the res/drawable-hdpi-v5 folder. Content area: 42×42. ic_tab_xxxx.png  32 x 32 Transparent tab icons for medium-density screens in res/drawable-mdpi-v5 folder. Content area: 28×28. ic_tab_xxxx.png  24 x 24 Transparent tab icons for low-density screens in res/drawable-ldpi-v5 folder. Content area: 22×22. ic_dialogbox.png  48 x 48 Transparent dialog icon is shown in pop-up dialog boxes. Place them into the res/drawable-hdpi folder. ic_dialogbox.png  32 x 32 Transparent dialog icon for medium-density screens in res/drawable-mdpi folder.  ic_dialogbox.png  24 x 24 Transparent dialog icon for low-density screens in res/drawable-ldpi folder.  

Upload: antonio-d-sousa-barroso

Post on 06-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

Page 2: Android Icon Sizes and Application Configuration With Android Manifest

8/3/2019 Android Icon Sizes and Application Configuration With Android Manifest

http://slidepdf.com/reader/full/android-icon-sizes-and-application-configuration-with-android-manifest 2/3

Page 3: Android Icon Sizes and Application Configuration With Android Manifest

8/3/2019 Android Icon Sizes and Application Configuration With Android Manifest

http://slidepdf.com/reader/full/android-icon-sizes-and-application-configuration-with-android-manifest 3/3