Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6386397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:01:18+00:00 2026-05-25T03:01:18+00:00

I’m having a load of issues with android images. I just don’t know what

  • 0

I’m having a load of issues with android images.

I just don’t know what sizes to make them and how to make them behave.

I’m coming from iphone development right, so in iphone dev I would fire up photoshop, create a canvas that is 640*960 and design my app.

I would then cut up the resulting design and export all the images with the extention @2x. Then I would scale it by 0.5 and export for standard display devices.

This is easy to understand… this is easy to do. If I want an image to take up half the screen I would make it 320px wide for the high res and 160px wide for standard res.

Unfortunately android isn’t working like this. I can’t figure it out. There is no “easy conversion” as it were. I don’t know how many dip a screen in android is!

So I end up using things like wrap_content which doesn’t help because then different screens just display different resolutions of the image. I’m having so many issues with extraneous margins on images and all sorts!

How to use images with android properly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:01:18+00:00Added an answer on May 25, 2026 at 3:01 am

    Android development is much more like web development. To be more specific it’s more like web development where you allow the page to resize with the browser window. iPhone development is more like web dev where you use a fixed page width and can control a lot of the payout.

    With Android the screen could be almost any size, and almost any orientation, but most crucially any of a variety of resolutions. It’s just like @2x but you need more variants as Android is more varied. It’s different but you’ll get used to it.

    This page is the official documentation re graphics:
    http://developer.android.com/guide/practices/screens_support.html

    But in reality I have found this page to be of more practical use:
    http://coding.smashingmagazine.com/2011/06/30/designing-for-android/

    The aim is that when you have an image of a particular physical size on the screen, it should display pretty much the same size on any device, whether it’s a crappy low res one, or a super hi-res device (like those coming soon).

    DIP is a measurement that relates to physical size rather than pixels. If you say something is 100dips wide it will be about the same physical size on all Android devices, no matter what the resolution of the device.

    You could just stick hi-res graphics in the drawable-xhdpi folder, but Android will have to resize on the fly and so you may see performance and quality issues. This is why you have to provide a set.

    Remember when designing that things will stretch. Don’t try and fix everything to the same size, it won’t work. So for example for buttons, you are likely to want to use stretchable images (read up on 9-patch images) so the app resizes depending on the different screen size.

    Also, you may well be able to create many of the icons you need (menus, notifications etc) using Roman Nurik’s FANTASTIC icon studio tool
    http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html

    So for example if you need an app launcher icon, just give his tool a bitmap, and it trims it, scales it, pads it, adds a 3D button effect (shine and shadow), and then squirts out versions for xhdpi, hdpi, mdpi, ldpi. It saves me DAYS of time on every project.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I am currently running into a problem where an element is coming back from
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.