Adding GestureOverlayView to my SurfaceView class, how to add to view hierarchy?

后端 未结 4 1740
醉梦人生
醉梦人生 2020-12-29 16:52

I was informed in a later answer that I have to add the GestureOverlayView I create in code to my view hierarchy, and I am not 100% how to do that. Below is the original qu

4条回答
  •  無奈伤痛
    2020-12-29 17:14

    You could simply add your view to to gestureOverlayView:

    gestureOverlayView.addView(new yourview (this) , 600, 800);
    

    then

    this.setContentView(gestureOverlayView);
    

    gestureOverlayView is already a framelayout

提交回复
热议问题