2014-12-02 2 views
0

Android의 ScrollView에 문제가 있습니다. 나는 무한 수직 스크롤에 직면하고있다. 요소가 부족하더라도 공백을 계속 스크롤 할 수 있습니다. ScrollView을 상대 레이아웃의 끝까지 스크롤하려고합니다. 이것에 대한 해결책이 있다면 많은 도움이 될 것입니다. 사전에Android Scrollview 무한 스크롤

감사

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:id="@+id/scroll1" 

    > 


<RelativeLayout 

    android:layout_width="fill_parent" 
    android:layout_height="match_parent" 

    android:id="@+id/info" 
    android:background="@color/main_backgroundColor" > 



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

     <com.etsy.android.grid.StaggeredGridView 
     android:id="@+id/mainGridview" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:numColumns="2" 
     android:scrollbars="none" 
     android:stretchMode="columnWidth" 
      android:layout_below="@+id/Line" 
     android:verticalSpacing="1dp" /> 




     <WebView 
     android:id="@+id/WebView_home" 
     android:layout_width="0dp" 
     android:layout_height="0dp" 
     android:visibility="invisible" /> 



</RelativeLayout> 
</ScrollView> 

답변

0

은 당연히 나는 프로젝트의 구조를 모르지만 왜 CWAC MergeAdapter와의 ListView를 사용하지 않는? 그것은 무한한 두루마리로 당신을 도울 수 있습니다.

여기에 링크 : https://github.com/commonsguy/cwac-merge