GithubHelp home page GithubHelp logo

Comments (5)

dongjunkun avatar dongjunkun commented on July 19, 2024

还是有必要的,一般这个需要和背景设置成一样的,你可以试试其他的背景,反差比较大的

from couponview.

dongjunkun avatar dongjunkun commented on July 19, 2024

好的,我看看

from couponview.

dongjunkun avatar dongjunkun commented on July 19, 2024

试了一下,按照你的方法,锯齿是黑的,不知道是不是打开方式不对

from couponview.

zty5678 avatar zty5678 commented on July 19, 2024

第二个链接里的MyView的运行效果是透明的锯齿。试试让CouponView继承View而不是ViewGroup,且去掉CouponView在xml里的android:background属性?

from couponview.

dongjunkun avatar dongjunkun commented on July 19, 2024

还是留着吧,CouponView是ViewGroup的场景比较多,看了下你的代码, bgColor = Color.parseColor("#ffffff"); mCanvas.drawColor(bgColor); 已经设置成了白色背景了,谢谢你的建议

from couponview.

Related Issues (8)

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.