sketch-smooth-corner-android

本项目详细解释了如何在Android Canvas中绘制类似于Sketch软件的平滑圆角效果。通过自定义View、Layout或Drawable,可以实现UI设计师偏爱的平滑圆角绘制,并在自定义视图中定制绘制函数,达到酷炫的动画效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

sketch-smooth-corner-android

项目地址:MartinRGB/sketch-smooth-corner-android 

简介:A android project explained how to draw sketch smooth corner in android canvas

更多:作者   提 Bug   

标签:

 

1:1 实现 UI 设计师使用 Sketch 时候更为喜欢的 平滑圆角 的绘制算法,自定义 View | Layout | Drawable 需提取绘制函数重写绘制方法


An android project explained how to draw Sketch's smooth corner in Android Canvas.

You can customize drawing function in your custom view n' achieve cool animation effect.

Also you can try it in this web demo —— compare uploaded image with effect in Web Canvas

APK download

See in release page

Parameter comparison

If the round radius is bigger than 90% of the shortest edge ,there will be tiny difference between real value in Sketch and the output value in Andoird (But in that case,I would use Round Corners)

parameters

Gifs

gif1 gif2 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值