在Android中实现多点触控视图下的GLSurfaceView层

在Android中实现多点触控视图下的GLSurfaceView层,android,android-custom-view,android-sensors,glsurfaceview,Android,Android Custom View,Android Sensors,Glsurfaceview,我有我的自定义多点触摸视图,该视图由我的主要活动引用。现在,我想在这个使用GLSURFACHEVIEW的屏幕旋转矢量上实现运动传感器 如果Rotation_Vector在单独的活动下运行,它可以返回值,但我想让它在使用我的多点触控视图的同一屏幕上工作。如何在同一活动中组合GLSurface视图和多点触控视图,以及需要在xml中进行哪些更改 目前,我的xml是这样的: <FrameLayout xmlns:android="http://schemas.android.com/apk

我有我的自定义多点触摸视图,该视图由我的主要活动引用。现在,我想在这个使用GLSURFACHEVIEW的屏幕旋转矢量上实现运动传感器

如果Rotation_Vector在单独的活动下运行,它可以返回值,但我想让它在使用我的多点触控视图的同一屏幕上工作。如何在同一活动中组合GLSurface视图和多点触控视图,以及需要在xml中进行哪些更改

目前,我的xml是这样的:

    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent" android:layout_height="match_parent"
    android:gravity="center_horizontal"
    android:background="@drawable/background1">

    <android.opengl.GLSurfaceView android:id="@+id/surfaceviewclass"
     android:layout_width="match_parent"
     android:layout_height="match_parent"/>
    <com.example.gcdt.MultiTouchView
        android:id="@+id/multi_touch_view" 
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        />
</FrameLayout>
    mGLSurfaceView = (GLSurfaceView) findViewById(R.id.surfaceviewclass);