android - Using ViewGroup.addView() to add a GestureOverlayView to a SurfaceView game panel -
After a lot of good help from the people here, finally I got almost my small game panel (a surface view class) above And with the use of Adiview with a gesture overlayview, I finally got to add the gestureoverlaveview and got it to work, the problem is that it is calling:
< Code> / ** create login form / private view group _createGameStuffs () {gesture overview gestures = New gesture overlayview (this); Gestures.setOrientation (gestures.ORIENTATION_VERTICAL); Gestures.setEventsInterceptionEnabled (true); Gestures.setGestureStrokeType (gestures.GESTURE_STROKE_TYPE_MULTIPLE); Gestures Settlement side (new layout pram (layout parama.philigant, layout parama.phil_parent)); // Gesture overview gestures = (gesture overlayviewview) Find VVBID (RID); Gestures.addOnGesturePerformedListener (this); Panel p = new panel (this); // My Game View Panel AddView (P, 0); // Add to the group panel. AddView (gestures, 1); // adding the Jester overlay done in the group return panel; } Crate on Public Zero (Bundle Saved Instantstate) {Super.Nought (Saved Instantstate); RequestWindowFeature (Window.FEATURE_NO_TITLE); MLibrary = Gesture Libraries. Show the panel on the screen set contentview (mainpane); // setContentView (P);} Create a panel to attach everything to RRR resource (this, r. Pre>Which index depends on which scene I take presedence. I believe that my game panel has to be added as a child's view for Jester Overlayview, is that right? ? If so, then I would like to have children of Jester Overlayview How do I get the s? Or is it the other side, JSTOR Ovrlewu a kid my main view?
Comments
Post a Comment