Comments (4)
@9468lgy Hello,这个库中绘制圆弧使用的都是仅支持5.0以上的API public void drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint)
如果需要兼容5.0以下需要自己把源码中相应的方法替换为public void drawArc(@NonNull RectF oval, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint)
这种写法
from enviews.
@codeestX 这个我替换了,声波可以展示,但是喇叭没有了 ,,我看绘制喇叭用的是
mDstPath.reset(); //嗷~ 在这画喇叭
mPathMeasure.getSegment(0, mPathLength * 0.38f - mPathLength * 0.13f * mFraction, mDstPath, true);
canvas.drawPath(mDstPath, mBgPaint);
mDstPath.reset();
还是我看错方法了??
from enviews.
@codeestX 坑.. 不是代码问题,,是硬件加速问题
setLayerType(View.LAYER_TYPE_SOFTWARE, null); 设置了之后就好了...谢谢你及时的回答,控件很好用:)
from enviews.
@9468lgy 嗯嗯 这里有提到 如果在安卓4.4或者之前的版本,在默认开启硬件加速的情况下,更改 dst 的内容后可能绘制会出现问题,请关闭硬件加速或者给 dst 添加一个单个操作,例如: dst.rLineTo(0, 0)
问题解决了就好^ ^
from enviews.
Related Issues (9)
- ENLoadingView的问题 HOT 1
- 有部分不太理解的代码 HOT 2
- ENPlayView在高版本上的问题 HOT 2
- ENPlayView的三角形下方显示不全 HOT 1
- 请问下更改控件颜色的API在哪里? HOT 2
- Playview的三角形太小
- 如果有空做一个重新播放的按钮
- IllegalStateException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enviews.