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

  • Home
  • SEARCH
  • 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 6016009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:55:18+00:00 2026-05-23T02:55:18+00:00

I read the document: Supporting Multiple Screens But still can’t figure out how to

  • 0

I read the document:

Supporting Multiple Screens

But still can’t figure out how to support all screen resolutions in Table 2 in the document. Even if I create three versions for LDPI, MDPI and HDPI, there are more than screen resolutions in that table, if there is no matching image, it will scale my image and may not retain the aspect ratio.

Is there any standard way to deal with this?
Thanks!

  • 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-23T02:55:19+00:00Added an answer on May 23, 2026 at 2:55 am

    See this question: How to scale an Image in ImageView to keep the aspect ratio answered by Steve H

    1. Yes, by default Android will scale your image down to fit the ImageView, maintaining the aspect ratio. However, make sure you’re
      setting the image to the ImageView using android:src=”…” rather than
      android:background=”…”. src= makes it scale the image maintaining
      aspect ratio, but background= makes it scale and distort the image to
      make it fit exactly to the size of the ImageView. (You can use a
      background and a source at the same time though, which can be useful
      for things like displaying a frame around the main image, using just
      one ImageView.)

    2. There isn’t “white space”, it’s filled with transparent pixels. If you don’t want even those, you could simply put your
      layout_width=”fill_parent” and layout_height=”wrap_content”.

      Then as Samuh wrote, you can change the way it default scales images
      using the android:scaleType parameter. By the way, the easiest way to
      discover how this works would simply have been to experiment a bit
      yourself! Just remember to look at the layouts in the emulator itself
      (or an actual phone) as the preview in Eclipse is usually wrong.

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

Sidebar

Related Questions

I read the official document about supporting multiple screens http://developer.android.com/guide/practices/screens_support.html According to that document,
I read the SDK document, but can not understand some details, need some help.
I'm trying to read a file to produce a DOM Document, but the file
I read the document http://code.google.com/appengine/docs/python/tools/webapp/requesthandlerclass.html but I cant find any information of the args
I read many topics here about it, but can't understand why my code does
Is there a parser/library which is able to read an HTML document into a
I am attempting to read a large XML document and I wanted to do
I am trying to read CSS selectors in my stylesheets with the document.styleSheets array.
How do I make open read only the only option within a SharePoint document
I want to read, write and create Spreadsheets in the Open Document Format with

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.