开发者

Android Surfaceview onClick Event doesnt work after pressing HOME

开发者 https://www.devze.com 2023-02-04 10:35 出处:网络
ihave used game loop as given in tutorial 开发者_如何学JAVA http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html

i have used game loop as given in tutorial

开发者_如何学JAVA

http://www.droidnova.com/playing-with-graphics-in-android-part-vii,220.html

when i press home button and comes again to surfaceview , onclickview doesnt works after that


How do you try to click? Are you using a trackball/dpad or the touchscreen? If you are using a trackball/dpad, make sure the SurfaceView is focusable and focusable in touch mode (see View.setFocusable/setFocusableInTouchMode).

0

精彩评论

暂无评论...
验证码 换一张
取 消