2012-10-10 47 views
1

我想補充後滑動抽屜另一個滑動抽屜,目前我的輸出是:添加另一個滑動抽屜右側失敗

enter image description here

箭頭#1應該是我的第一個滑動抽屜

箭#2是我的第二滑動抽屜應該

我有以下代碼:

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

    <SlidingDrawer 
     android:id="@+id/asof" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:background="@drawable/drop_shadow" 
     android:content="@+id/right_content_a" 
     android:gravity="center_horizontal" 
     android:handle="@+id/right_handle" 
     android:orientation="horizontal" > 

     <ImageView 
      android:id="@+id/right_handle" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:src="@drawable/tab" 
      android:text="" /> 

     <FrameLayout 
      android:id="@+id/right_content_a" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:tag="eacomm" > 
     </FrameLayout> 
    </SlidingDrawer> 

    <SlidingDrawer 
     android:id="@+id/field_ex" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:background="@drawable/drop_shadow" 
     android:content="@+id/right_content_a" 
     android:gravity="center_horizontal" 
     android:handle="@+id/right_handle2" 
     android:orientation="horizontal" > 

     <RelativeLayout 
      android:id="@+id/right_handle2" 
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:gravity="bottom" > 

      <ImageView 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" 
       android:src="@drawable/tab" /> 
     </RelativeLayout> 

     <FrameLayout 
      android:id="@+id/right_content_a" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:tag="eacomm2" > 
     </FrameLayout> 

    </SlidingDrawer> 

</LinearLayout> 

有什麼想法? TIA!

回答

0

我已經通過創建兩個滑動抽屜XML文件並將其綁定到主容器/佈局來解決此問題。謝謝...

1

滑塊抽屜將捕獲完整的佈局行。因此,您將無法放置另一個滑塊抽屜或任何其他需要捕獲水龍頭或焦點的視圖。