Giter VIP home page Giter VIP logo

Comments (4)

codeestX avatar codeestX commented on May 20, 2024

@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.

9468lgy avatar 9468lgy commented on May 20, 2024

@codeestX 这个我替换了,声波可以展示,但是喇叭没有了 ,,我看绘制喇叭用的是
mDstPath.reset(); //嗷~ 在这画喇叭
mPathMeasure.getSegment(0, mPathLength * 0.38f - mPathLength * 0.13f * mFraction, mDstPath, true);
canvas.drawPath(mDstPath, mBgPaint);
mDstPath.reset();
还是我看错方法了??

from enviews.

9468lgy avatar 9468lgy commented on May 20, 2024

@codeestX 坑.. 不是代码问题,,是硬件加速问题
setLayerType(View.LAYER_TYPE_SOFTWARE, null); 设置了之后就好了...谢谢你及时的回答,控件很好用:)

from enviews.

codeestX avatar codeestX commented on May 20, 2024

@9468lgy 嗯嗯 这里有提到 如果在安卓4.4或者之前的版本,在默认开启硬件加速的情况下,更改 dst 的内容后可能绘制会出现问题,请关闭硬件加速或者给 dst 添加一个单个操作,例如: dst.rLineTo(0, 0) 问题解决了就好^ ^

from enviews.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.