2012-07-04 3 views
0

내 레이아웃에 슬라이딩 서랍 위젯을 추가 할 때 도로 블록을 만났습니다. 나는 그것을 추가하고 모든 것이 잘 작동한다. 문제는 높이를 채우는 레이아웃이있을 때 슬라이딩 서랍의 핸들이 더 이상 보이지 않는다는 것입니다. 이 핸들을 포 그라운드 또는 다른 방법으로 처리하여 표시되도록하는 방법이 있습니까?안드로이드 슬라이딩 서랍을 전경에서 볼 수있게 만드는 방법은 무엇입니까?

https://mobibear.wordpress.com/2010/07/12/android-slidingdrawer-with-custom-view/

나는 위의 사이트에서 편집 한 모든 .xml 파일 다음과 같습니다 :에서 내가 함께 연주하고

예입니다. 미리 감사합니다, 나는

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

    <TextView 
     android:id="@+id/textView1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:text="Blah Blah Title" 
     android:gravity="center" 
     android:textSize="38dp"/> 

    <FrameLayout 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" > 

    </FrameLayout> 

    <SlidingDrawer xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/drawer" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:handle="@+id/handle" 
     android:content="@+id/content"> 

     <bear.exmaple.CustomView 
      android:id="@+id/content" 
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent"> 
     </bear.exmaple.CustomView> 


     <ImageView android:id="@id/handle" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:src="@drawable/tray_handle_normal" /> 

    </SlidingDrawer> 

</LinearLayout> 

답변

0

나는이 질문에 대한 답을 찾는 결국 .... 대기됩니다 ​​그것은 모든 뷰를 추가/상대 레이아웃 레이아웃 및 확인하는만큼 간단했다 슬라이딩 서랍이 최종 추가됩니다. 대답의 위치는 다음과 같습니다.

Sliding drawer in the same layout

관련 문제