[android-developers] onSingleTapConfirmed and different screen sizes

2010-08-30 Thread djauto23
I am developing a game in which there are a couple of on-screen buttons the user can press to do different things. These work by responding to onSingleTapConfirmed, and checking if the getX and getY of the event are within the coordinates of the buttons. However, the getX and getY coordinates are

[android-developers] SurfaceView detaining focus

2009-07-07 Thread djauto23
I'm making a game which uses a SurfaceView to display the main graphics. I want to use the button labelled MENU in the emulator, and I have implemented onCreateOptionsMenu(Menu menu) in the Activity. Trouble is, the MENU button isn't working. Only if I first press and hold Home, then select my

[android-developers] Re: SurfaceView detaining focus

2009-07-07 Thread djauto23
On Jul 7, 7:07 pm, Dianne Hackborn hack...@android.com wrote: This isn't an intrinsic problem -- apps like YouTube have a surface view and show the menu fine.  And there isn't enough information here to provide much help. Yes, several other examples I've looked at, including the LunarLander