Parent layout is ScrollView, the shadow is invalid
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.gigamole.library.ShadowLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:sl_shadow_angle="45"
app:sl_shadow_color="#9e000000"
app:sl_shadow_distance="4dp"
app:sl_shadow_radius="4dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</com.gigamole.library.ShadowLayout>
</LinearLayout>
</ScrollView>
I fixed this issue in my fork https://github.com/mrnorouzi/ShadowLayout
NestedScrollView not work
I tested a NestedScrollView it works correctly. May you(@qssq) write an example?
@mrnorouzi @GIGAMOLE Hello, When I use scroll view shadow is applied to the Max 5 button or any component, can you please help me to solve this issue. NestedScrollView is not worked in my case.