lcodecorex / TwinklingRefreshLayout

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

我日啊,包裹FrameLayout有问题啊 #58

Closed txxxtxx closed 7 years ago

txxxtxx commented 7 years ago

我日啊,包裹FrameLayout有问题啊,我的FrameLayout里面放的RecyclerView,上拉之后,RecyclerView跑到上面去了,我日,既然都写成这样了,干脆把loading,empty,error的界面也弄进去啊,我之所以放framelayout就是因为我写的loadinglayout是继承framelayout的,红色是match_parent的framelayout,RecyclerView也是match_parent的。 wechatimg1

lcodecorex commented 7 years ago

你说的是RecyclerView固定在上面了,还是没有弹回去?

txxxtxx commented 7 years ago

固定在上面了,没有弹回去

lcodecorex commented 7 years ago

能分享你的布局和相关逻辑我好调试一下吗? lcodecore@163.com

txxxtxx commented 7 years ago

我试了一下Relativelayout里面包recyclerview也是一样的,不过我调整了一下,用loadinglayout包TwinklingRefreshLayout了,这样就可以避免我刚刚说的问题了。

lcodecorex commented 7 years ago

LoadingLayout是什么?

txxxtxx commented 7 years ago

我自己写的一个布局根据情况显示loading,empty,error界面的

lcodecorex commented 7 years ago

不太能看懂你前面说的布局的嵌套是什么样的

txxxtxx commented 7 years ago

TwinklingRefreshLayout->FramLayout-> recyclerview 这样有问题,上拉之后recyclerview会跑到上面去回不来

lcodecorex commented 7 years ago

有调用setTargetView方法吗?

txxxtxx commented 7 years ago

并没有 布局里面引用的TwinklingRefreshLayout

lcodecorex commented 7 years ago

你需要在代码里面setTargetView设置滚动的目标。因为你这个嵌套了,而控件默认的滚动view是控件的直接子类

lcodecorex commented 7 years ago

直接子View

txxxtxx commented 7 years ago

还有个问题,如果我的数据加载完成了,上拉的时候想显示没有更多数据了,这时候应该怎么弄?

ailuoyi commented 7 years ago

看来开源也是需要有强大心理素质的

lcodecorex commented 7 years ago

你好!我正在处理嵌套问题,请加qq群202640706我们一起分析一下问题!

Fish-Bin commented 7 years ago

如果我的数据加载完成了,上拉的时候想显示没有更多数据了,这时候应该怎么弄?