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 6859313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:16:03+00:00 2026-05-27T02:16:03+00:00

I am encounter more and more android devices with irregular layouts, especially in the

  • 0

I am encounter more and more android devices with irregular layouts, especially in the HDPI section.

The problem is that my more complex layouts do not scale correctly even though I only use DIP values in my xml layouts. Animations are particularly problematic since I use float values within the TransformAnimation code.

For instance, I will have a 240dpi phone with a 3.7 inch screen, with android standard resolutions. I can make HDPI and large layouts for this device and have them fit all designs and aesthetics perfectly.

Then I have a phone with a 4.2inch, but its vertical resolution is still less than XHDPI or XLARGE. If you ask the device what its DPI is, it will report 240dpi as well. Unfortunately due to the actually different aspect ratio, actually different screen size and actually different resolution, my layouts do not scale correctly. There is also no way to make a separate layout folder because the device THINKS it is a layout-large and hdpi, because it simply reports it wrong. (Both EVOs, several other “long” phones) Reading the android documentation it seems like you could use layout-long-large and some other kind of combination, but the phone itself still thinks it is only layout large. the long qualifier does work in devices that report proper information about itself.

How do people deal with this with the Android framework, without doing it in code. That would be a very tedious work around for me, and I have questions about how dynamically I could do that if the hardware reports all information about itself incorrectly.

Insight appreciated.

  • 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-27T02:16:03+00:00Added an answer on May 27, 2026 at 2:16 am

    My solution to this problem is to rely on RelativeLayout’s positioning more and more.

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

Sidebar

Related Questions

This is a problem I encounter frequently in working with more complex systems and
I frequently encounter some definitions for Win32API structures (but not limited to it) that
The more I see ref used in production code, the more misuse I encounter
I always encounter these 2 words. I know that when you are talking about
my code works perfectly in visual studio yet i encounter a problem running it
I frequently encounter situations, especially with sorting in C++, where I am comparing a
what's happening is i'm reading encryption packets, and I encounter a corrupted packet that
Writing Scala code, I regularly encounter cases where I have processor functions that operate
One problem I have with open-source is not often the product or documentation, but
The tutoriel in question is http://developer.android.com/resources/tutorials/views/hello-gridview.html The Tutorial asks that you 1- Create a

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.