Open UvrajSB opened 3 years ago
holder.parent_card.background = ElevatedDrawable(NeuPlatformAppearance(SynthUtils.defaultBaseColor),40f,20f)
I am facing this issue multiple times, even after setting clipChildren = false in parent view The bakground do come with a shade but it appears clipped
Most likely your shadows are getting outside your parent’s bounds. So you’ll have to add clipChildren = false
to the next immediate parent too.
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false" android:id="@+id/kindle_parentRL" xmlns:app="http://schemas.android.com/apk/res-auto" android:background="#1C1D1E" android:clipToPadding="false">