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

아이디어가 있으십니까? 티아!

답변

0

두 개의 슬라이딩 서랍 XML 파일을 만들어 주 컨테이너/레이아웃에 바인딩하여 이미 해결했습니다. 감사합니다 ...

1

슬라이더 서랍은 레이아웃의 전체 행을 캡처합니다. 따라서 다른 슬라이더 드로어 또는 탭이나 포커스를 캡처해야하는 다른 뷰를 배치 할 수 없습니다.