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

Shimmer effect moving out from view sometimes #69

Open
MenosGrante opened this issue Nov 12, 2018 · 7 comments
Open

Shimmer effect moving out from view sometimes #69

MenosGrante opened this issue Nov 12, 2018 · 7 comments

Comments

@MenosGrante
Copy link

Sometimes shimmer effect moving out of views and after restart it is working good again.

Video example

<io.supercharge.shimmerlayout.ShimmerLayout
        android:id="@+id/statisticsLayoutLoading"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"
        app:shimmer_angle="15"
        app:shimmer_color="@color/colorShimmerEffect">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <View
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:layout_margin="16dp"
                android:background="@color/colorShimmerBackground" />

            <View
                android:layout_width="280dp"
                android:layout_height="280dp"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="16dp"
                android:layout_marginBottom="16dp"
                android:background="@drawable/figure_circle"
                android:backgroundTint="@color/colorShimmerBackground" />

            <View
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:layout_margin="16dp"
                android:background="@color/colorShimmerBackground" />

            <View
                android:layout_width="280dp"
                android:layout_height="280dp"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="16dp"
                android:layout_marginBottom="16dp"
                android:background="@drawable/figure_circle"
                android:backgroundTint="@color/colorShimmerBackground" />

            <View
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:layout_margin="16dp"
                android:background="@color/colorShimmerBackground" />

            <View
                android:layout_width="280dp"
                android:layout_height="280dp"
                android:layout_gravity="center_horizontal"
                android:layout_marginTop="16dp"
                android:layout_marginBottom="16dp"
                android:background="@drawable/figure_circle"
                android:backgroundTint="@color/colorShimmerBackground" />
        </LinearLayout>
    </io.supercharge.shimmerlayout.ShimmerLayout>
@veghtomi
Copy link
Contributor

@MenosGrante thanks for reporting the, I will investigate it.

@MenosGrante
Copy link
Author

@veghtomi No problem, hope you will fix this soon :)

@DanP1925
Copy link

@veghtomi did you find the cause of this issue because I'm having it too on my app

@Sdghasemi
Copy link

Any updates on this?

@nikhilpanju
Copy link

Same issue here. Any updates @veghtomi ?

@atakankaya
Copy link

I am also seeing this behaviour, and I notice that this happens with phones running Android 9.
I see that 2-3 out of 10 cycles go beyond the bounds on Samsung S9.
Issue does not happen on Huawei P9 Lite (Android 7.0) or Samsung Tab S2 (Android 7.0)

Do you have any updates regarding this @veghtomi ?

@fenghuilu
Copy link

private void enableForcedSoftwareLayerIfNeeded() {

// if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.JELLY_BEAN) {
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
// }
}
can ignore this problem

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

7 participants