gelitenight / waveview Goto Github PK
View Code? Open in Web Editor NEWwaveview for android
License: Apache License 2.0
waveview for android
License: Apache License 2.0
Recently I use this library and thanks very much , but it costs CPU a lot , any way to optimize it?
很容易就 OOM 了
复现:随便选择一个颜色(除默认的灰色),旋转屏幕
原因分析:修改颜色后旋屏会调用 setWaveColor()
,此时height
和width
都为 0
不知道为什么会调用 setWaveColor()
?
暂时解决: 在 createShader()
中添加如下代码
if (getHeight() == 0) {
return;
}
java.lang.IllegalArgumentException: width and height must be > 0 in wave annimation
Is there any way we can add Bubbles in the Wave.
We wanted to have Beer effect. So any ideas will be helpful.
你好 问下如何让让波形从右到左运动
In my simulator(1080*1920,API 19),there is a white vertical line in the wave, and I have find the solution:In WaveView.java -> createShader ,change from final float endX = getWidth(); to final float endX = getWidth()+1;
我这边的需求是没有边框的,我在布局中设置了match_parent,也通过seekbar 将边框设置最小,可是还是不能填充完空间,请问有什么好办法么? 是需要我自己重写onmeause()?
如果放到bitmap上面去画的话,属性动画位移的时候,会有颜色位移的色带。如果是放到onDraw里面的话,就会出现断层的问题,我是drawArc,麻烦指点一二,谢谢
Water level always set to 50% of view. How i can set any other level to using it like a progress bar?
Method setWaterLevelRatio dont do anything.
Thanks in advance!
I am trying to use the library in conjunction with the gyroscope values so that when I rotate the phone, I get the water flowing effect.
The only problem is, when the WaveView rotates, it doesn't expand it's height and width to fill the blank area that's generated in the sides.
This happens even if I have given match_parent as the width.
Is there a way to get this working?
Or am I getting something wrong?
I have put a stackoverflow question too, with images, here : https://stackoverflow.com/q/48369005/7947474
I am trying to create an elevation for this view when its placed on another view. How do u do this ?
在线等,谢谢
I want to call some action when wave has covered my screen while holding an button, i implement the motion event action up and down as well.
Actually,
When the wave covers my screen fully and i release that button,action up called for that button and
i check the
if(waterLevelAnim.getAnimatedFraction()==1.0)
it works
But i want to check this thing while holding the button,not releasing the button.
Please help me to solve this.
when the wave bound in all screen width ,some time I see sawtooth in the water line
Hello,
We are currently using your library in one of our applications. Actually we need a favour from your side. According to the Google Play Policy, all apps have to provide support for at least API level 26. It seems like yours is not as per the new Google Play Policy. We are targeting API level 28. So can you please provide us support for API level 28 in your current repository?
how to use this ?
Causing crash with devices below 5.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.