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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:27:49+00:00 2026-05-29T09:27:49+00:00

All along I’ve been testing on an Android 2 version ported to x86 (which

  • 0

All along I’ve been testing on an Android 2 version ported to x86 (which runs within VirtualBox), due to problems with the emulators. My application and layout appears fine on this port.

I am now finishing my development, and am testing on my real phone, a Droid Bionic.

However, my overall application layout does not take up the full size of my screen, even when I have my dimensions set to the below. There is a black outer box that it seems to reside within and I can’t enlarge this window.
If I change the dimensions of my overall layout from fill_parent to say 1000px, I can see the layout being truncated as it still sits within this unchanged window size.

Can anyone advise me how to resolve this?

Thanks

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@layout/overall_background"
    android:orientation="vertical"
    >
    <GridView 
    android:id="@+id/gridView"
    android:gravity="fill_horizontal"
    android:stretchMode="columnWidth"
    android:horizontalSpacing="0px"
    android:background="@layout/grid_background"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"/>
  • 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-29T09:27:50+00:00Added an answer on May 29, 2026 at 9:27 am

    Edit:

    I am fairly sure this is because of the screen compatibility mode you are running in because your android:targetSdkVersion in your manifest is set incorrectly. This should be set to the highest SDK version that you have tested your app with and it works on.’

    Please see this link and in specific read the first few paragraphs.

    There are two versions of screen compatibility mode with slightly
    different behaviors: Version 1 (Android 1.6 – 3.1)

    The system draws the application’s UI in a "postage stamp" window.
    That is, the system draws the application’s layout the same as it
    would on a normal size handset (emulating a 320dp x 480dp screen),
    with a black border that fills the remaining area of the screen.

    To disable this version of screen compatibility mode, you simply need
    to set android:minSdkVersion or android:targetSdkVersion to "4" or
    higher, or set android:resizeable to "true".

    Edit: Please see the documentation on how you should be setting the target SDK attribute

    These lines in particular are of interest:

    To maintain your application along with each Android release, you
    should increase the value of this attribute to match the latest API
    level, then thoroughly test your application on the corresponding
    platform version.

    Given that your ran into this issue tells me your target sdk is set to 3 or lower. So Android 1.5 or lower. This means that anyone running your app on a phone with something newer then Android 1.5 is going to be running in compatibility mode. This leads to decreased performance and incompatible default graphics. I.E. the graphics will not look like what everything else on the phone looks like because of the compatibility mode.

    Currently something like 95% of all Android are running a newer version then 1.5.
    What you need to do is up your tarket SDK to 4,5,6,7 … etc one at a time and fully test the App until you get to the current SDK release of 15. When you release the target SDK should be 15 to ensure it runs well on all OS versions.

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

Sidebar

Related Questions

Put them all in one separate folder structure or along with classes which implements
I'm using a very simple Stylesheet Switch by php. It was fine all along
I would like to have pretty URLs for my tagging system along with all
All I am currently trying implement something along the lines of dim l_stuff as
You are given all the prime factors of a number, along with their multiplicities
I have been using attachment_fu on a project for a long time and all
Update: What I really wanted all along were greenlets . Note: This question mutated
The code worked all along. Somehow I manage to get Visual C++ Express not
My day job includes working to develop a Pascal-like compiler. I've been working all
My sql query to get posts along with all tags associated with it: SELECT

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.