android-materialshadowninepatch icon indicating copy to clipboard operation
android-materialshadowninepatch copied to clipboard

Question - Supported Shapes

Open TurKurT656 opened this issue 11 years ago • 3 comments

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

ThnQ :+1:

TurKurT656 avatar Feb 20 '15 15:02 TurKurT656

I would like to know this too

saket avatar Feb 21 '15 05:02 saket

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.

  • https://github.com/ZieIony/Carbon
  • https://github.com/ShogoMizumoto/ZDepthShadowLayout

h6ah4i avatar Feb 21 '15 08:02 h6ah4i

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?

kenshin171 avatar Oct 15 '17 04:10 kenshin171