huxq17 / XRefreshView

一个万能的android下拉上拉刷新的框架,完美支持recyclerview
1.7k stars 501 forks source link

框架与CoordinatorLayout,AppBarLayout组合嵌套问题 #136

Open 900326 opened 4 years ago

900326 commented 4 years ago

image

如上图,当上滑时,1的部分滑出去,2的部分固定到顶部,下面的列表可继续滑动(需要分页),然后想到系统的CoordinatorLayout,AppBarLayout,框架与CoordinatorLayout,AppBarLayout组合嵌套后就导致系统控件的效果失效了,如果是吧框架写在CoordinatorLayout内与AppBarLayout同级,然后框架嵌套listview或者recycleview,框架的自动上啦加载就失效了,

huxq17 commented 4 years ago

有demo么?

900326 commented 4 years ago

明天如果有空我抽出个demo给你看下效果,不知道是不是我的使用方式不对

------------------ 原始邮件 ------------------ 发件人: "huxq17"<notifications@github.com>; 发送时间: 2019年12月12日(星期四) 晚上8:00 收件人: "huxq17/XRefreshView"<XRefreshView@noreply.github.com>; 抄送: "似笑非笑"<895483316@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [huxq17/XRefreshView] 框架与CoordinatorLayout,AppBarLayout组合嵌套问题 (#136)

有demo么?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

huxq17 commented 4 years ago

好的

900326 commented 4 years ago

demo有4个界面,MainActivity是正常使用系统控件的联动效果, SecondActivity是xrefreshview在外层嵌套时情况, ThirdActivity是xrefreshview跟AppBarLayout同级别的情况, FourActivity是模拟项目的真实布局,要达到截图的效果.框架里面XScrollView extends ScrollView ,有时要使用NestedScrollView嵌套listview或者gridview时达到一些效果,不知道框架里面这个继承是否可以改为新控件,这个嵌套也可以用recycleview代替,只是listview使用习惯了,顺手,只有listview达不到的效果的情况下,才使用recycleview,不知道其他人是怎样的,

------------------ 原始邮件 ------------------ 发件人: "huxq17"<notifications@github.com>; 发送时间: 2019年12月12日(星期四) 晚上8:06 收件人: "huxq17/XRefreshView"<XRefreshView@noreply.github.com>; 抄送: "似笑非笑"<895483316@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [huxq17/XRefreshView] 框架与CoordinatorLayout,AppBarLayout组合嵌套问题 (#136)

好的

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.