I make game and have some problem. I use SurfaceView for draw objects
and in SurfaceChanged i get width/height of SurfaceView:
Fragment Code:
public void surfaceChanged(SurfaceHolder arg0, int format, int width,
                        int height) {
                mViewWidth = width;
                mViewHeight = height;
                System.out.println(mViewWidth+" "+mViewHeight);

        }

I get width = 320 , height = 402.  But  my resolution of screen
320x240. Somebody tell me, how it is possible!

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