dongjunkun / couponview Goto Github PK
View Code? Open in Web Editor NEW半圆锯齿背景虚线边框组合实现简单优惠券效果,可实现一些简单组合
Home Page: http://www.jianshu.com/p/b27d0f9b3856
License: Apache License 2.0
半圆锯齿背景虚线边框组合实现简单优惠券效果,可实现一些简单组合
Home Page: http://www.jianshu.com/p/b27d0f9b3856
License: Apache License 2.0
可以通过给Paint设置setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR))来实现透明的锯齿?这样cv_semicircle_color就不必存在了
参考:http://stackoverflow.com/questions/18130341/drawing-holes-in-a-canvas
https://gist.github.com/zty5678/f15777ef818c35242105c0f85a9a2d88
已经解决,自己设置错误,抱歉
现在背景灰色,半圆白色,感觉不太协调。如果设置半圆颜色透明的话又没有半圆效果(方形)。
我的意思是半圆透明能够看到整背景色或背景图片,请问这个情况怎么处理啊?
一个很不错的自定义控件,只是缺少开源授权协议,快快添加一个开源授权协议吧:)
接上一个lssues, 很多场景需要用到阴影或者卡片效果,把绘制的那部分圆与背景剪切掉是否会更实用些
你好,如果是得添加阴影效果,那需要怎么处理呢。特别是小圆圈,我想的是先画完背景的阴影,再去画圆的.结果很不自然.。。
拼成wachat了
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.