Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent layout is ScrollView, the shadow is invalid #9

Open
xukai59740 opened this issue May 17, 2017 · 4 comments
Open

Parent layout is ScrollView, the shadow is invalid #9

xukai59740 opened this issue May 17, 2017 · 4 comments

Comments

@xukai59740
Copy link

xukai59740 commented May 17, 2017

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

mrnorouzi added a commit to mrnorouzi/ShadowLayout that referenced this issue Aug 21, 2017
@mrnorouzi
Copy link
Contributor

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

GIGAMOLE added a commit that referenced this issue Nov 3, 2017
@lozn00
Copy link

lozn00 commented Nov 10, 2017

NestedScrollView not work

@mrnorouzi
Copy link
Contributor

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

@Tejas-Kanani
Copy link

Tejas-Kanani commented Dec 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants