Android 如何将libgdx呈现对象添加到当前layout.xml视图中

Android 如何将libgdx呈现对象添加到当前layout.xml视图中,android,Android,如何将libgdx呈现视图添加到当前的androidxml布局中 e、 g 线性布局> <com.libgdxView.obj android:id="@+id/sheet" android:layout_width="1152dp" android:layout_height="576dp" android:layout_centerInParent="true"

如何将libgdx呈现视图添加到当前的androidxml布局中

e、 g

线性布局>

        <com.libgdxView.obj
            android:id="@+id/sheet"
            android:layout_width="1152dp"
            android:layout_height="576dp"
            android:layout_centerInParent="true" 
            />

/线性布局>

        <com.libgdxView.obj
            android:id="@+id/sheet"
            android:layout_width="1152dp"
            android:layout_height="576dp"
            android:layout_centerInParent="true" 
            />
谢谢。


<com.libgdxView.obj.**YourClassName**
        android:id="@+id/sheet"
        android:layout_width="1152dp"
        android:layout_height="576dp"
        android:layout_centerInParent="true" 
        />

试试这个

终于找到了解决方案

//创建布局 RelativeLayout布局=新的RelativeLayout(此)