2012-10-10 44 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

滑块抽屉将捕获完整的布局行。因此,您将无法放置另一个滑块抽屉或任何其他需要捕获水龙头或焦点的视图。