Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work on the child item of recylerview #19

Open
OnClickListener2048 opened this issue Dec 13, 2017 · 7 comments
Open

doesn't work on the child item of recylerview #19

OnClickListener2048 opened this issue Dec 13, 2017 · 7 comments

Comments

@OnClickListener2048
Copy link

No description provided.

@wenmin92
Copy link

wenmin92 commented Mar 8, 2018

See my fork, I fixed this problem.
Just use getWidth() & getHeight() methods instead of bounds.
因为性能原因,不再回收创建的mBitmap

forked

@shenyunmeng0519
Copy link

See my fork, I fixed this problem.
Just use getWidth() & getHeight() methods instead of bounds.
因为性能原因,不再回收创建的mBitmap。
forked

这个阴影效果能在按钮四周都有吗,我看只能设置一遍

@wenmin92
Copy link

wenmin92 commented May 8, 2019

hi @shenyunmeng0519 , 这个阴影效果的实现原理很简单, 就是画2次, 第1次画的内容变成阴影, 后1次的覆盖在上面. 按钮的阴影效果也是可以实现的, 原理一样, 按钮设置背景即可(颜色或图片), 但是, 我觉得这个效率不好, 直接使用5.0的新API自带的阴影更合适.

@shenyunmeng0519
Copy link

hi @shenyunmeng0519 , 这个阴影效果的实现原理很简单, 就是画2次, 第1次画的内容变成阴影, 后1次的覆盖在上面. 按钮的阴影效果也是可以实现的, 原理一样, 按钮设置背景即可(颜色或图片), 但是, 我觉得这个效率不好, 直接使用5.0的新API自带的阴影更合适.

但是自带的可以改颜色吗

@shenyunmeng0519
Copy link

5.0的新API自带的阴影

而且我看这个效果只能放一个固定的角度,我想要四周都有按钮应该怎么修改呢

@wenmin92
Copy link

wenmin92 commented May 8, 2019

加个好友讨论吧

@shenyunmeng0519
Copy link

加个好友讨论吧

好,895447910我扣扣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants