2014-10-12 1 views
0

우마노 AndroidSlidingUpPanel에서이 라이브러리를 사용하고 있습니다. 문제가 해결되지 않을 정도로 잘 작동합니다. 주 자식은 정상적으로 작동하는 mapview (정적 기본보기)이며 두 번째 자식 (slidinguppanel)은 webview 및 imageview에서 반응이 빠른 HTML 파일입니다. 문제는 패널을 슬라이드 할 때 위로 스 와이프하면 webview 내부에서 html 파일을 스크롤 할 수 없다는 것입니다. 라이브러리 상태에서 다른 하나를 스크롤 할 수 있도록 단일 뷰를 드래그 가능하도록 만들었지 만 실제로 그렇게하는 방법을 모른다면 정말 감사 할 것입니다. 웹보기가 정상적으로 스크롤 것, 그래서 내가 그냥 dragview 설정을위한 라이브러리 메소드를 호출했다 그것을 고정 만 이미지 뷰와 같은 드래그 설정우마노 android slidinguppanel에 문제가 있습니다. 미끄러지는 자식으로 보았습니다.

<com.sothree.slidinguppanel.SlidingUpPanelLayout 
    xmlns:sothree="http://schemas.android.com/apk/res-auto" 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/sliding_layout" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:gravity="bottom" 
    sothree:panelHeight="50dp" 
    sothree:shadowHeight="4dp"> 

    <fragment 
     android:id="@+id/map" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:name="com.google.android.gms.maps.MapFragment"/> 

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

     <ImageView 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:layout_gravity ="center_horizontal" 
      android:src="@drawable/divider"> 
     </ImageView> 

     <WebView 
      android:layout_width="match_parent" 
      android:id="@+id/desc" 
      android:layout_height="wrap_content" 
      android:layout_alignParentBottom="true" 
      android:paddingBottom="7dp"/> 
    </LinearLayout> 
</com.sothree.slidinguppanel.SlidingUpPanelLayout> 
+0

. setDragView 메소드 또는 dragView 속성을 사용하여 드래그 영역을 특정 뷰로 제한 할 수 있습니다. 즉, 슬라이딩 업 패널 내에서 하나의 뷰를 정의하여 드래그 뷰가되어 슬라이딩 업 패널의 클릭 및 드래그 이벤트를 가로 챌 수 있습니다 . 이 경우 ImageView. 이 솔루션을 사용하면 Webview에 대한 작업 이벤트를 방해하지 않습니다. – ecle

+0

또는 WebView를 ScrollView http://stackoverflow.com/questions/6253444/android-webview-scrollable 또는 http :// /stackoverflow.com/questions/13257990/android-webview-inside-scrollview-scrolls-only-scrollview/13353874#13353874 – ecle

답변

0

을 heres 내 xml 파일, 내가 해냈어을 heres 방법 :

이상 밖으로
 ImageView image=(ImageView)findViewById(R.id.divideri); //Layout to slide 
    SlidingUpPanelLayout layout = (SlidingUpPanelLayout) 
    findViewById(R.id.sliding_layout); 


    layout.setDragView(image); 

... 그것은`기본적으로 전체가 [UP 슬라이딩] 패널은 드래그 영역으로 역할을하고 클릭 및 드래그 이벤트를 가로 챌 것이라고 말한다