dinuscxj / RecyclerRefreshLayout

A pull to refresh layout for android, the RecyclerRefreshLayout is based on the SwipeRefreshLayout. support all the views, highly customizable, code simplicity, etc. really a practical RefreshLayout!
1.67k stars 253 forks source link

TipsUtils do not support viewpager #7

Closed AndroidLi123 closed 7 years ago

AndroidLi123 commented 7 years ago

how to support viewpager use TipsUtils?

AndroidLi123 commented 7 years ago

When i use viewpager add Fragment, the Fragment do not show in my expected! I used TipsUtils.show ,but it did not work

dinuscxj commented 7 years ago

do you want to use the TipsUtils to control the show and the hide of the ViewPager? I can sure it will work well, because my company has used the tipsUtils in any situations, maybe you are using the TipUtils in the wrong way. if you want to learn more, you can join the QQ group: 342748245

AndroidLi123 commented 7 years ago

算了,不装逼了,还是用中文吧。我的意思是当我用viewpager add fragment时,fragment不会显示等待,错误这个tips布局,我是在framgnet的oncreateview里面就已经让他tips.show(),但是他并不会show(),显示是空白的布局,我只有把他hide tips才会显示fragment布局。

AndroidLi123 commented 7 years ago

viewpager是能替换,是当我addfragment之后,在fragment里面不会正常工作

dinuscxj commented 7 years ago

@416679828 显示的空白布局应该就是show的布局,你可以调试下,看看白色的布局是什么, 为什么子布局没有显示。我顺便也做一个demo试试

dinuscxj commented 7 years ago

其实你这样的场景在我公司的项目里面也有, 我怀疑是你的布局有问题

dinuscxj commented 7 years ago

@416679828 我这里测试的没有问题, 我怀疑你不包在viewpager中你的这个Fragment也有问题!

dinuscxj commented 7 years ago

@416679828 我已经将我写的demo推上来啦, 你可以重新git clone 一下!

AndroidLi123 commented 7 years ago

好的,谢谢