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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:35:42+00:00 2026-05-27T00:35:42+00:00

When designing an UI, we need to target many android mutations and various screen

  • 0

When designing an UI, we need to target many android mutations and various screen resolutions.

  • How to differentiate layout for 480 * 800 and 480 * 854 screen resolutions in android?
  • how to layout support for various screen in android?

Both questions above recommend to use different Layout code for different screens. Is it really necessary?

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

recommends to

Provide different layouts for different screen sizes

Provide different bitmap drawables for different screen densities

But I still think, we can support multiple screens without creating standalone layout for each screen resolution. Or am I wrong?

I know, and I do use, 9-patch for scalable background images (or form inputs, and so on)
and I do use dp (density pixel) to declare sizes relatively to screen density

But what are next best practices ?

  • 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-27T00:35:43+00:00Added an answer on May 27, 2026 at 12:35 am

    I think the answer to this has changed recently, but I’ll go over historical solutions.

    Pre-Honeycomb, the solution was to create a dynamic layout that could adjust itself to the size of the screen (using 9-patches, dips, layouts that expand/shrink, etc.). This meant that none of your Views could be “pixel perfect”, but you could adjust to different aspect ratios that you encounter. Sometimes you would come up with different layouts for landscape and portrait, but beyond that customization wasn’t necessary.

    With the release of Honeycomb, the problem got a lot more complex. Now you’ve got dramatically different screen sizes, where your app stretching doesn’t look good at all. You’ve got tablets that stretch from 7″ to 10″ – which one is “large” vs. “xlarge”? 3.0 and 3.1 were an awkward period, where you had to detect the API version/screen size and configure your app accordingly (supposing your app supports both phones and tablets).

    However, everything’s changed in 3.2 and beyond. Now, the best practice can be described thus: think like a web designer, not an Android designer. Instead of thinking about phone vs. tablet vs. landscape vs. portrait layouts, think instead of layouts that work on particular screen sizes.

    This thought process is detailed by this blog post, and these slides, but I think it’s best demonstrated by going to some sample web pages and seeing it in action. Try visiting this page (or this page, or this page) and changing the size of your browser. Notice how they dynamically change layout based on the width – this is what you want in Android as well.

    So now you’ve got a layout that works between screen width 150dp and 400dp; another one that works between 401dp and 800dp; a third that handles 800dp and 1000dp, etc. This way of thinking does not end up with you, as a developer, doing too much more work than before – instead of defining a phone layout, a tablet layout (each with a portrait/landscape layout), you just define a few layouts that work with different widths.

    Right now we’re in an awkward transitional stage as most people don’t have devices that support this practice. So “best practice” is essentially all of the above. In a few years, when everyone’s got ICS and beyond, then we can all breath a sigh of relief.

    (I apologize if you were looking for specific solutions; this answer ended up being relatively theoretical rather than having concrete answers, mostly because I felt the question was pretty open-ended. If you’ve got a specific problem you want to solve, I can try to address that elsewhere.)

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

Sidebar

Related Questions

I'm designing an App for android and I need to parse an XML file,
I need help designing an algorithm for recommendations on movies. Every user in the
We're designing a database in which I need to consider some FK(foreign key) constraints.
Im designing a website, and often I need to present information in a nice
I am designing a job rota planner for a company and need help displaying
I'm designing a Java based web-app and I need a key-value store. Berkeley DB
for designing purposes i need to truncate all DB which has lots of FK's.
I'm relatively new to the world of WhiteBox Testing and need help designing a
I need to develop an interior designing software :) Much like a virtual room
I am designing an app in which i need to open an email client

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.