Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

碰见了一个问题,如果没有LinearLayout包围CanRefreshLayout,里面的ListView无法使用下拉刷新与下拉加载,但是可以使用自动加载。 #12

Open
EthanSha opened this issue Dec 7, 2016 · 2 comments

Comments

@EthanSha
Copy link

EthanSha commented Dec 7, 2016

业务的使用,Fragment页面的Layout就一个ListView,所以外包围只用了CanRefreshLayout,但是 TabHost.setup(this, getSupportFragmentManager(), R.id.xxxxx)这种情况,只能自动刷新,后来看了下您的代码,我在CanRefreshLayout外层加了一层LinearLayout就可以解决,想问下您是不是有什么其他更优雅的解决方案,而是我不知道的:)

@canyinghao
Copy link
Owner

我没使用过TabHost,我用过TabLayout,用RadioGroup自定义过Tab。所以你遇到的问题我没遇到过,没有好的解决方案,不好意思。

@EthanSha
Copy link
Author

EthanSha commented Dec 9, 2016

恩恩恩,那我就套着LinearLayout吧,也给其他遇到这个问题的做个解决的参考吧:)
十分感谢你写着这个控件,目前用着最舒服的:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants