安卓拉窗帘效果

来源:互联网 发布:新代数控车床编程实例 编辑:程序博客网 时间:2024/06/10 10:58

详情见https://github.com/7heaven/bitmapMesh


本repo只作演示,新项目地址CurtainSlidingMenu(未完成状态)

this repo was just a demo, and no longer being updated, however, I added a new project for this kind of effect CurtainSlidingMenu (incomplete)

bitmapMesh

未完成,由于开了硬件加速 drawBitmapMesh的参数colors在API18以下是不起作用的,所以API18以下的系统上是看不到窗帘的阴影的,正在解决这个问题

according to official api guides, the parameter 'colors' of canvas.drawBitmapMesh won't work when api level lower than 18, so shadow effect is not available when api level lower than 18

阴影问题已解决

shadow issue solved.

无法显示阴影时的效果:

this's what it looks like when shadow effect is not available

art1

显示出阴影时的效果(由于gif对颜色的压缩,阴影效果显示不是很好):

this's what it looks like when shadow effect works

art2

静态效果

art3

art4 art5

阅读全文
0 0
原创粉丝点击