Android-MaterialRefreshLayout icon indicating copy to clipboard operation
Android-MaterialRefreshLayout copied to clipboard

app:wave_show="false"

Open cq-guojia opened this issue 10 years ago • 5 comments

1.3.0 app:wave_show="false" 这一个设置了没有效果?不管理是false还是true都会出现波浪形状的背景。

有没有方法能判断页面正在Loading中?就是Loading还没有结束

cq-guojia avatar Nov 04 '15 12:11 cq-guojia

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

ChaosJohn avatar Nov 24 '15 02:11 ChaosJohn

看了源码以后我是让wave显示,但是颜色设置成透明的就可以了

peerless2012 avatar Jan 29 '16 17:01 peerless2012

I'm also having this problem. Neither of these have effect:

app:wave_show = "false"
materialRefreshLayout.setWaveShow(false);

I tried setting transparent color (white color with 0% opacity): app:wave_color="#00ffffff"

It worked initially.. but recently it's not also working. It is showing pure white. Otherwise it works nicely :+1:

nicknabdullah avatar Feb 07 '16 18:02 nicknabdullah

@nicknabdullah just try app:overlay="true" app:wave_color="@android:color/transparent" app:wave_show="true"

xudshen avatar Feb 23 '16 16:02 xudshen

hi @xudshen Thanks for the tip.. it worked! There was initially problem because in code I had set 'setWaveShow(false)'.

nicknabdullah avatar Feb 26 '16 05:02 nicknabdullah