2016-09-02 2 views
-1

私はGLSurfaceViewアンドロイドに最前ボタンを表示するには?

を使用して、私は私のbutton

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
tools:context="my package"> 

<Button 
    android:layout_width="100dp" 
    android:layout_height="50dp" 
    android:text="back button" 
    android:id="@+id/btn_previous" 
    android:layout_alignParentBottom="false" 
    android:layout_marginBottom="45dp" 
    android:layout_alignParentTop="true"/> 

<android.opengl.GLSurfaceView 
    android:id="@+id/glview" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_alignParentTop="true" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="true"/> 

</RelativeLayout> 

GLSurfaceView

の前で、私のxml Buttonを示していないこのソースを表示します。私は私のために

おかげでアドバイスをしてくださいGLSurfaceView

の後ろだと思います。

答えて

0

取引所、このようなGLSurfaceViewButtonの位置、:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
tools:context="my package"> 

<android.opengl.GLSurfaceView 
    android:id="@+id/glview" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_alignParentTop="true" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="true"/> 

<Button 
    android:layout_width="100dp" 
    android:layout_height="50dp" 
    android:text="back button" 
    android:id="@+id/btn_previous" 
    android:layout_alignParentBottom="false" 
    android:layout_marginBottom="45dp" 
    android:layout_alignParentTop="true"/> 

</RelativeLayout> 
関連する問題