I have a custom view that works fine and I'm trying to get gestures into it. The most common technique I see is to add XML, such as this (from Android docs:
<android.gesture.GestureOverlayView
android:id="@+id/myGestures"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1.0"
/>
My view is within a RelativeView and when I attempt to reference this GetureOverlayView, I get an exception.
I've also tried to connect within my existing custom view class, like this:
mGestures = new GestureOverlayView(context, attrs);
mGestures.addOnGesturePerformedListener(this);
But the callbacks are never invoked.
Can someone point out my errors, suggest a better way that will allow me to get gesture callbacks and/or suggest diagnostic approaches?