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

为什么在代码中设置MaterialRefreshLayout的样式总是不生效的呢 #13

Open
NightfuryN opened this issue Nov 14, 2015 · 3 comments

Comments

@NightfuryN
Copy link

在xml文档中设置了一套样式,我在代码中另外设置的话发现并没有改变,断点测试也确实执行过该代码了
materialRefreshLayout.setIsOverLay(false);
materialRefreshLayout.setWaveShow(false);

@wlianghe00
Copy link

我怎么xml中都不起作用。。。

@NightfuryN
Copy link
Author

你没配置好吧,先弄个简单些的页面然后直接复制他源码Sample里面的一些代码来测试一下先。不过我测试过,有些样式按他文档说明里面配的确不起作用,要自己多尝试一下其他的才行,他这个库还有好些bug没修复

@ChaosJohn
Copy link

项目很好,但是确实有些bug,但是读了源码后,发现样式的设置可以用比较“hack”的方式来实现,比如
materialRefreshLayout.setWaveShow(false);这句话是没有任何作用的。
源码中有materialHeadView.setWaveColor(isShowWave ? waveColor : Color.WHITE);分析这个bug后,发现如果你要隐藏wave的话,可以设置wave为显示但是设置颜色为纯透明就好了

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

3 participants