[android-developers] OnLongClickListener doesn't work for SurfaceView?
Hi all,
I met a problem when using SurfaceView. When I wanted to handle the
long click event for the SurfaceView which has been set for the
activity's content view using setContentView(surfaceView), but when I
press the screen and hold for a long time, the long click event seemed
not working ---- sure, before setContentView, I have defined an
OnLongClickListener to set to the surfaceView, and called
surfaceView.setlongClickable(true).
//===========================
//In my subclass of SurfaceView's constructor
this.setClickable(true);
this.setLongClickable(true);
this.setOnClickListener(mClkListener);
this.setOnLongClickListener(mLongclkListner);
Anyone has any suggestions?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home