qinci / edgetranslucent Goto Github PK
View Code? Open in Web Editor NEWAndroid 任意View边沿渐变透明
Android 任意View边沿渐变透明
今天做一个类似功能,有幸看到了这个库,不太理解绘制边缘渐变时为什么要旋转保存图层。感觉可以给画笔设置不同的渐变方向,直接绘制四个矩形,这样应该可以节省一些开销吧。
如题,参照了您的代码重写了drawChild方法,但无法实现listview自身边缘透明。需要在Listview draw方法或者onDraw方法中做什么操作呢?
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.