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

Shadow effect #4

Closed
akohout opened this issue Apr 1, 2014 · 5 comments
Closed

Shadow effect #4

akohout opened this issue Apr 1, 2014 · 5 comments

Comments

@akohout
Copy link

akohout commented Apr 1, 2014

Will it be possible to add shadows to the CircleImageView? Or is it already possible and I just don't know why? :-)

@hdodenhof
Copy link
Owner

Adding a shadow is not support out of the box and I think for a proper solution you would have to extend CircleImageView directly, as you need access to some members which you won't have in a subclass.

If you want to do that, it should be fairly easy using setShadowLayer() on mBorderPaint in onDraw(). Feel free to open a pull request if you do so. :)

@keshuangjie
Copy link

I encounter a error
java.lang.IllegalArgumentException: width and height must be > 0
at CircleImageView.getBitmapFromDrawable(CircleImageView.java:170)
at CircleImageView.setImageDrawable(CircleImageView.java:144)

@hdodenhof
Copy link
Owner

Please look at #1. If that doesn't apply to your problem, please open a new issue with a little more details instead of hijacking this one, Thanks.

@liangfeidotme
Copy link

I have just submitted a Pull Request, before the author accept it, you could find the source here
https://github.com/LyndonChin/CircleImageView

@hafiz013
Copy link

hafiz013 commented Mar 9, 2020

#4 (comment). <--- this link died

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

5 participants