Coder Social home page Coder Social logo

Add shadow about roundedimageview HOT 3 CLOSED

vinc3m1 avatar vinc3m1 commented on July 22, 2024
Add shadow

from roundedimageview.

Comments (3)

vinc3m1 avatar vinc3m1 commented on July 22, 2024

Technically it should be somewhat trivial to add (though I could be wrong).

Performance-wise, it would definitely be slower.

And design-wise it could potentially cause issues with sizing/scaling since you will need to reduce the overall image as the shadow might get clipped if you try to draw outside the canvas bounds.

I don't plan on exploring this in the near future, but you're welcome to try it and put it in a pull request

from roundedimageview.

lawloretienne avatar lawloretienne commented on July 22, 2024

Hey @Steelight were you referring to "drop shadow"? I am trying to figure out how to implement drop shadow on a RoundedImageView as seen here :

http://i.stack.imgur.com/MG6ba.png

from roundedimageview.

Steelight avatar Steelight commented on July 22, 2024

At the end, it really wasn't so difficult. I used something like this:
https://android.googlesource.com/platform/development/+/28b127ec1e5af575a74af679a8542042112d177e/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ShadowLayout.java
but there are plenty of tutorials.

from roundedimageview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.