lcodecorex / TwinklingRefreshLayout

RefreshLayout that support for OverScroll and better than iOS. 支持下拉刷新和上拉加载的RefreshLayout,自带越界回弹效果,支持RecyclerView,AbsListView,ScrollView,WebView
Apache License 2.0
3.99k stars 671 forks source link

scrollView下拉问题 #91

Open 506967734 opened 7 years ago

506967734 commented 7 years ago

布局: <com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout android:id="@+id/refresh" android:layout_width="match_parent" android:layout_height="match_parent">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:overScrollMode="never">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">
          ............
        </LinearLayout>
    </ScrollView>
</com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout>

界面: 默认: image

下拉加载数据的界面: image

在加载过程中我向上滑动,加载完成以后就会出现下面的问题 image

请问怎么解决,我在demo中的scrollView看了,也出现这样的问题

nextmrwang commented 7 years ago

我也有一样的问题 嵌套scrollview的时候从下面返回顶部有时候scrollview的顶部会缺一块

MannaYang commented 7 years ago

同样的问题,上拉回弹后同样有一部分缺失,显示不全

MannaYang commented 7 years ago

demo里面的Story-ScrollView-GoogleDotView 也会出这个问题,

freefly2016 commented 7 years ago

我也遇到了,看来这个真的是bug,希望可以早点修正

PeanutZhang commented 6 years ago

遇到了同样的问题 这个bug解决了吗

tabian commented 6 years ago

我也遇到相同问题,目前解决办法是根据scrollview是否滑动顶部做逻辑,如下: if (y <= 0) { refreshLayout.setNestedScrollingEnabled(true); refreshLayout.setEnableOverScroll(true); refreshLayout.setEnableRefresh(true); } else { refreshLayout.setNestedScrollingEnabled(false); refreshLayout.setEnableOverScroll(false); refreshLayout.setEnableRefresh(false); }

ausboyue commented 6 years ago

亲测,1.0.7版本增加了下拉后不放手直接回拉(上拉),TwinklingRefreshLayout的子View允许被上拉负数高度的功能,作者可能试图添加这个良好的用户体验,但是目前存在大家所说的bug----顶部被吃掉。因为项目忙还未来得及看源码,找其原因,目测是子view高度计算出现问题,建议大家先使用1.0.6及更早版本,日后有空再来看看源码,当然!更希望作者能够早日修复这个问题。