-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 #50
Comments
+1 |
+1 Please ;) |
There's a PR to address this: #42. The problem with this approach is that I'm open for any ideas on how to address this in another way though. |
To be fair isn't that how Android expects you to add a shadow? I would say it's an issue with android rather than your implementation. One thing I was trying to do was add a drawable shape around the CircleImageView, but it was wrapping to the full view which is a square, maybe if you change that we can add a shape drawable around the image to fake a shadow? |
Any update on this? |
I have a chain of circular images that increase in size from outside to the middle, they overlap slightly and the elevation increases as well. It just looks strange to have it all flat. I would be very happy if this was added. |
This would be an awesome feature to this already great API ! |
I committed a branch that fix this issue but I don't know if the head dev will commit it to the master branch. instead of applying a shadow, I made the the view accept elevation for devices >= Lollipop |
Just a quick heads up: support for elevation is on its way: https://github.com/hdodenhof/CircleImageView/tree/feature/outline-provider. |
@hdodenhof I already added it, look at my branch :) |
@NyanRex52 great, I somehow missed that. Making the |
@hdodenhof That even looks more beautiful than what I did and less calculations. May I ask for two things:
|
@hdodenhof is it required to set a black background? Just use the circle image view with outline. No shadow is shown |
Version 2.2.0 includes support for elevation, thanks @NyanRex52 for the initial idea. This should satisfy the original requirement for a shadow property, hence closing this issue. |
@hdodenhof .... That really didn't answer anyone my questions X'D |
@hdodenhof is it for only api>=21? |
Should I use using version 2.2.0 EDIT: EDIT2: |
oh god you saved me. |
please create app:shadow="2dp"
The text was updated successfully, but these errors were encountered: