2012-06-12 3 views
0

android-misc-widgets에 소개 된 Panel 위젯을 활용하려고합니다. 지금까지 좋았습니다. 이제 문제는 슬라이딩 패널이 최상위 메뉴 모음과 겹치는 것입니다. 명확히하기 위해 다음 스크린 샷을보십시오. enter image description here안드로이드의 다른 내용과 겹치는 패널 위젯

: 나는 하나의 탭 (상단 메뉴 중첩 아이콘을보고)와 패널을 열 때 enter image description here

이것은 : I 드래그 제스처 (여기에 아무 문제)를 사용하여 패널을 열 때

입니다

다른 문제가 있습니다. 활동에 콘텐츠가있는 경우 패널을 열면 해당 콘텐츠가 화면 밖으로 밀려납니다!
enter image description here

답변

0

Relative Layout으로 처리 할 수있었습니다. 모든 항목을 올바른 위치에 배치합니다. 만약 누군가가 똑같은 문제에 직면했다면 XML 파일이 여기에있다.

<?xml version="1.0" encoding="utf-8"?> 
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:panel="http://schemas.android.com/apk/res/com.ms.rightel.store" 
    android:layout_width="fill_parent" 
    android:layout_height="match_parent" > 

    <RelativeLayout 
     android:id="@+id/RelativeLayout1" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:background="@drawable/bg" > 
    > 


     <ScrollView 
      android:id="@+id/scrollView1" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentBottom="true" 
      android:layout_alignParentLeft="true" 
      android:layout_below="@+id/include1" 
      android:layout_marginTop="3dp" > 

      <LinearLayout 
       android:layout_width="match_parent" 
       android:layout_height="match_parent" 
       android:orientation="vertical" > 

       <ImageView 
        android:id="@+id/imageView1" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:layout_marginTop="10dp" 
        android:src="@drawable/categories" /> 

       <com.devsmart.android.ui.HorizontalListView 
        android:id="@+id/catsHList" 
        android:layout_width="fill_parent" 
        android:layout_height="88dp" > 
       </com.devsmart.android.ui.HorizontalListView> 

       <ImageView 
        android:id="@+id/imageView2" 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:layout_marginTop="10dp" 
        android:src="@drawable/latest" /> 

       <com.devsmart.android.ui.HorizontalListView 
        android:id="@+id/topHList" 
        android:layout_width="fill_parent" 
        android:layout_height="88dp" > 
       </com.devsmart.android.ui.HorizontalListView> 
      </LinearLayout> 
     </ScrollView> 

     <org.miscwidgets.widget.Panel 
      android:id="@+id/panel1" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentLeft="true" 
      android:layout_below="@+id/include1" 
      panel:animationDuration="500" 
      panel:closedHandle="@drawable/top_switcher_collapsed_background" 
      panel:content="@+id/panelContent" 
      panel:handle="@+id/panelHandle" 
      panel:linearFlying="false" 
      panel:openedHandle="@drawable/top_switcher_expanded_background" 
      panel:position="top" > 

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

       <ImageView 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:src="@drawable/android_ldpi" /> 

       <ImageView 
        android:layout_width="match_parent" 
        android:layout_height="wrap_content" 
        android:src="@drawable/android_ldpi" /> 
      </LinearLayout> 

      <Button 
       android:id="@+id/panelHandle" 
       android:layout_width="wrap_content" 
       android:layout_height="wrap_content" 
       android:layout_gravity="center_horizontal" /> 
     </org.miscwidgets.widget.Panel> 
<include 
      android:id="@+id/include1" 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_alignParentLeft="true" 
      android:layout_alignParentTop="true" 
      layout="@layout/header" /> 
    </RelativeLayout> 

</FrameLayout> 
관련 문제