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

Rounded views get rectangular shadow #25

Open
escobar5 opened this issue May 19, 2016 · 2 comments
Open

Rounded views get rectangular shadow #25

escobar5 opened this issue May 19, 2016 · 2 comments

Comments

@escobar5
Copy link

Is there a way to get a rounded shadow that matches my rounded view background?

@justasm
Copy link
Owner

justasm commented May 21, 2016

Not without modifying the DragLinearLayout source code.

If your minSdkVersion is >= 21, I would suggest looking into changing the View's elevation dynamically and making use of the system's dynamic shadows instead of faking the effect with a shadow Drawable as this library does.

@meesec
Copy link

meesec commented May 21, 2016

escobar5, i have submitted a pull request that - might - solve the issue for you. it will depend how "rounded" your view is... but at least with slightly rounded corners it should look fine.

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