2016-09-02 1 views
-1

내가안드로이드에 최전방 버튼을 보여주는 법?

GLSurfaceView를 사용하고 내가 원하는 내 buttonGLSurfaceView

앞에 내 XML

<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> 

이 소스가 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> 
관련 문제