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:

 http://www.zitnay.com/stuff/IMG00910.jpg 

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.

Drew

--



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
resolutions.

Please have a look at this.

 http://developer.android.com/intl/de/guide/practices/screens_support.html 

Kumar Bibek




--


Sponsored Links


Other Threads

1. Removing SurfaceView when switching layouts

Hi,

In my application, I have two layouts. One with a ListView and the
other containing a SurfaceView.  When I switch from from the ListView
layout to the SurfaceView layout everything is works as intended, but
if I switch from SurfaceView layout to ListView layout the SurfaceView
is still available.

Any ideas on how I can hide/remove the SurfaceView when the I switch
to the ListView layout??



Regards
Stuart

--~--~---------~--~----~------------~-------~--~----~

2. How to add a new library to android source

Hi All,


I have an specific requirement to write a new library in android
source and an simple client application on top of that. which uses
some of functions exposed by that library
Can any one provide me step by step process for the same


Arun
achoudhary2...@gmail.com


--~--~---------~--~----~------------~-------~--~----~

3. how to enable SkDEBUGF printf

4. Camera.takePicture and problem with Exif information

5. Virtual keypad and ListView OnItemClick conflicts

6. Emulator Communication

7. problems with my htc magic