ShadowLayout icon indicating copy to clipboard operation
ShadowLayout copied to clipboard

Parent layout is ScrollView, the shadow is invalid

Open xukai59740 opened this issue 8 years ago • 4 comments

<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>

xukai59740 avatar May 17 '17 10:05 xukai59740

I fixed this issue in my fork https://github.com/mrnorouzi/ShadowLayout

mrnorouzi avatar Aug 21 '17 14:08 mrnorouzi

NestedScrollView not work

lozn00 avatar Nov 10 '17 08:11 lozn00

I tested a NestedScrollView it works correctly. May you(@qssq) write an example?

mrnorouzi avatar Nov 11 '17 19:11 mrnorouzi

@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.

Tejas-Kanani avatar Dec 12 '20 05:12 Tejas-Kanani