Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a great feature for Buttons that allows to set OnClick attribure write directly in xml that works perfectly when I switch between layouts. I look for the same for SurfaceView if its possible at all. Why? - Because touch events not works when I switch to another layout and move back. Thanks.
Posted

maybe yout can use the mouseup event. the behaviour is nearly the same and supports the feature you discribe.

hope this helps...
 
Share this answer
 
SurfaceView[^] does not have that - but it extends View[^], which has some pretty interesting methods for drawing and event processing (keys and touchscreen).
Maybe you can find a hook there. Please read in the documentation, it's pretty good.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900