Android app only taking up part of screen

by Drew » Wed, 10 Mar 2010 01:34:30 GMT

Sponsored Links
 I have an Android application that's seemingly only taking up 1/3 or
so of the screen on a Texas Instruments Zoom Android device.  You can
see what I mean here: 

The upper-middle third or so of the screen contains the app, but the
rest of the screen is black.  I have thousands of other people using
this app, but have never had a report of this before (and can't
reproduce it using the emulator).

I'm typically building the layout programmatically (typically with a
ScrollView as the main view) then using setContentView() to display
it.  I was originally using setContentView(View), but I tried adding
new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.FILL_PARENT) as the second parameter today,
which didn't seem to fix the problem.

I'd appreciate any advice anyone can give.  Thanks.



Android app only taking up part of screen

by Kumar Bibek » Wed, 10 Mar 2010 18:42:58 GMT

 Aah, An example of apps running on different screen sizes and

Please have a look at this. 

Kumar Bibek


Sponsored Links

Other Threads

1. Orientation within orientation


How can I have a main layout with a "vertical" orientation and have
some text appear within it in a "horizontal" orientation?

Even though my app is used horizontally, I use a vertical layout to
get the title bar out of the way and get maximum vertical screen real
estate. But I need the ability to display a TextView that is rotated
90 degrees so as to appear normal in a horizontal layout. Can this be
done, short of using an animation?

Thanks in advance for any assistance.

2. Purchase multiple unlocked G-1s

Hi All
I'm not sure if this is the right forum, but I thought I'd ask
anyways. I am a grad student at the university of southern california
and we are intending to teach a course based on Android and the G-1
phones. We wish to purchase multiple G-1 phones but there seems no
easy way to do the same. Does anyone know how we can purchase more
than one phone as a developer?



3. Locking Down Root Access - Same Sh.., Different Vendor

4. Problem saving canvas to file

5. how to build and step through HelloAndroid in the debugger using the open source framework?

6. whether should be updated when adding a new so?

7. Name of a widget