I'm a relative Android newbie here.  At first, I thought it was just a
problem with my code, but I've since discovered that this problem
applies even to the default, unmodified app templates I can choose
from when creating a project in Eclipse.  Every app only takes up a
fraction of the screen.  Here's my layout for an example, but again,
it affects all of them:

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android";>

<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="MY_API_KEY"
/>

</RelativeLayout>

The specified screen resolution is, as in the droid, 854x480. It shows
up in the emulator in horizontal or vertical mode. The map starts
about a third of the way from the left and ends about a third of the
way from the right. It starts at the top and ends about a third of the
way from the bottom of the screen. I have no clue why that would
happen, as I specified "fill_parent".

I've tried a variety of things. I switched to a linearlayout, as one
page I saw recommended. I tried spelling out absolute layout widths. I
tried all sorts of stuff. The map stubbornly remains surrounded by
black on all sides.  One thing I noticed was that when I specified
widths and heights that were really large, way bigger than the screen,
the map showed up as pure white instead of as a map. But it still had
the black all around the map as described above.  The title bar
likewise is truncated by the black bars on either side and only takes
up 1/3 of the width, whether in landscape or portrait mode.

The apps that come by default on the emulator take up the fullscreen,
but everything I install from Eclipse does not.

I posted this over on Stack Overflow but got no responses, so I
thought I'd try here.  Thanks for any help you can give.

 - Karen

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to