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

Disabled state of button causing weird rectangular shadow

Open ankuranurag2 opened this issue 3 years ago • 1 comments

If I disable the button using isEnabled=false, it causes a weird rectangular shadow around the button. Any fix for the same? The button works fine for enabled state.

image

ankuranurag2 avatar Feb 10 '22 12:02 ankuranurag2

Have you used clipChildren = false on parent? If yes then most likely your shadows are getting outside your parent’s bounds too. So you’ll also have to add clipChildren = false to the next immediate parent.

rishabhsinghbisht avatar May 08 '22 18:05 rishabhsinghbisht