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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:38:22+00:00 2026-06-09T21:38:22+00:00

The problem I am running into related to supporting multiple screen sizes – a

  • 0

The problem I am running into related to supporting multiple screen sizes – a fairly common one I believe. I have searched a lot, but have not found something helpful.

I have my project laid out traditionally, with folders to support the various sizes called layout, layout-small, layout-large, layout-xlarge.

So as I have found out, even within each of these size regimes, there screens are not all the same size. For example, my 320×480 screen qualifies for the normal size layout, but so does someone’s 480×800. As you can imagine, the content of my app will not fill up the whole screen of a 480×800 device because there is more area. Here are examples of what it looks like:

On 320×480 (what I designed for):

enter image description here

On 480×800 (notice the extra space at the bottom):

enter image description here

Now, I have done a lot of research and applied lots of techniques in an effort to make my app look nice on all screen, but I feel like I am missing something fundamental. I have taken all the basic steps to use dp instead of px, use RelativeLayout everywhere, stuff like that. But I need some way for my app to re-size itself to better fit the larger screens. For example, the margins between the various components could increase a little to occupy more of the empty vertical space.

Any advice, or help? In the worst case, is there a way to design a layout which would fire up specifically for 480×800 screens (because they seem to be most common)? 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-06-09T21:38:23+00:00Added an answer on June 9, 2026 at 9:38 pm

    If I were you I’d use a layout like this:

    <LinearLayout android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
    
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <!-- Your first form line -->
        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <!-- Your second form line -->
        </LinearLayout>
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1">
            <!-- Your third form line -->
        </LinearLayout>
            <!-- .... -->
    
    </LinearLayout>
    

    This layout will produce this (without colors, of course 🙂 ). The ratio of the lines (colored boxes) is fix, but it’s size is dinamically fit to the screen height. The fill_parent and layout_weight do the trick.

    If you want to use RelativeLayout, you have to set the whitespaces and heights programatically from JAVA (some explanation here)

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

Sidebar

Related Questions

Running into a problem. I have a table defined to hold the values of
I'm running into a problem related to caching, plugins and duplicate model names in
I keep running into the following problem: (System.Console.ReadLine ()).Split [|'('; ')'|] |> Array.filter (fun
I'm running into a problem when trying to create an ArrayList in Java, but
I'm running into a bizarre problem with a C++ makefile. I rewrote it this
I'm running into an odd problem with MEF's composition container and directory catalog where
I'm running into a problem inserting rows from a file with 13,000 rows into
I'm running into a problem when trying to select records from my 2005 MS-SQL
I am running into a problem that just doesn't seem right. I've got a
I keep running into this design problem, and I'm not happy with my solution

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.