• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Portrait/Landscape image size

 
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

What is the best resolution for portrait and landscape images to be used in my app?

Thanks in advance,
 
author
Posts: 51
Android Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A lot depends on what device (or devices) your app will run on. This is also a big reason why Android comes with the different /res subdirectories, so you could supply different resolution images for different devices that have different screen densities and sizes. This page from the Android Dev Guide does a good job explaining it:

http://developer.android.com/guide/practices/screens_support.html

So one answer to your question is that portrait and landscape don't really impact image size considerations. It's about size and density. In that page you'll find that Android will attempt to create a decent image if it doesn't have one that fits the device. If you just want one set of images, choose images that look good for the middle size/density (i.e., normal screen size, 160 dpi, icon size of 48x48).

One tool you may be interested in is the Android Asset Studio. While it works best in the Chrome browser, you may get it to work in Firefox. It allows for the easy creation of alternate image sizes. Check it out here:

http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html

- dave
 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic