h6ah4i / android-materialshadowninepatch

Provides 9-patch based drop shadow for view elements. Works on API level 9 or later.
Apache License 2.0
482 stars 65 forks source link

Question - Supported Shapes #1

Open TurKurT656 opened 9 years ago

TurKurT656 commented 9 years ago

Hi, This is great lib bro. is this lib support circle shapes and custom shapes? or just rectangle shapes?

ThnQ :+1:

saket commented 9 years ago

I would like to know this too

h6ah4i commented 9 years ago

Hi. Unfortunately, this library supports rectangle shapes only. Because this library depends on statically generated nine patch images. Thus circle shapes or custom shapes are impossible to support by this approach.

The concept of this library is... simple & light weight. I know some other libraries which generate drop shadow effect dynamically, but they are not suit to my use case.

kenshin171 commented 6 years ago

in that case does the library support using my own list of 9patch drawables for app:ms9_ambientShadowDrawablesList="@array/ms9_ambient_shadow_drawables_z18" for the ambient shadow 9patch drawables to fit to the shape that I want to have shadows for?