My son and I are developing a cool game for the Android phone (we are
novice programmers with good support from a non-profit student
programming organization)  .  The game is up and working well.  We
display bitmaps and basic status items using a SurfaceView and render
the game objects using OpenGL ES.

Here's our dilemma:  we cannot gain access to knowing the true View
Height and View Width of the screen until the views are displayed once
and we receive the information from the SurfaceChanged callback.  In
fact, the first pass through the callback indicates a view width of 0
and view height of 0.

This leads us to hard code an initial view width and height to
position game objects initially and then immediately adjust them
(using relative positioning) once we know the actual view width and
height.

There have been a few discussions in this community on the subject,
but I honestly cannot decipher the discussion well enough to know how
to get an initial understanding of view height and width before
displaying an initial view.  Is it even possible to know the view
dimensions prior to actually displaying the initial screen?

Much thanks,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to