2012-07-24 4 views
1

sliderdrawer가 가져온 처리기를 누를 때 내용이 투명하지만 내용과 listview.the listview가 모두 숨겨져있는 것을 볼 수 있습니다. 사전에slidingdrawer 내용이보기와 겹치다

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/RelativeLayout1" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:orientation="vertical" > 

    <ListView 
     android:id="@+id/lvq" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" > 
    </ListView> 


    <SlidingDrawer 
     android:id="@+id/slidingDrawer1" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:layout_alignBottom="@+id/lvq" 
     android:layout_alignTop="@+id/lvq" 
     android:content="@+id/content" 
     android:handle="@+id/handle" > 

     <Button 
      android:id="@+id/handle" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="History" /> 

     <LinearLayout 
      android:id="@+id/content" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:orientation="vertical" > 
     </LinearLayout> 
    </SlidingDrawer> 

</RelativeLayout> 

감사 :

여기 내 레이아웃 XML입니다!

+0

슬라이딩 서랍의 내용 부분에 배경색/이미지를 설정하면됩니다. 기본적으로 투명합니다. –

답변

2

SlidingDrawer를 ListView 아래에 배치하십시오.

android:layout_below="@id/lvq" 
+0

내가 ive가 이것을 벌써 시험해 보았다라고 말하는 것을 잊었을 때 나는 슬퍼한다. 어떤 차이라도 만들지 않았다. – Will