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

onClick ripple effect issue #401

Closed
ilyasipek opened this issue Nov 3, 2020 · 1 comment
Closed

onClick ripple effect issue #401

ilyasipek opened this issue Nov 3, 2020 · 1 comment

Comments

@ilyasipek
Copy link

ilyasipek commented Nov 3, 2020

When i click on CircleImageView inside a recyclerView the ripple effect stucks and does not go away , can you help me to solve this problem?

photo5839037550088532763

my CircleImageView code

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

    <de.hdodenhof.circleimageview.CircleImageView
        android:id="@+id/iv_cover"
        android:layout_width="128dp"
        android:layout_height="128dp"
        android:layout_marginEnd="12dp"
        android:layout_marginStart="4dp"
        android:translationZ="@dimen/small_elevation"
        android:background="@drawable/background_circle"
        android:backgroundTint="?accentBackgroundColor"
        android:foreground="?selectableItemBackgroundBorderless"
        android:clickable="true"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:civ_border_width="1dp"
        app:civ_border_color="?accentBackgroundColor"
        android:focusable="true" />

     <..../>

</androidx.constraintlayout.widget.ConstraintLayout>`

and i used Glide to load my image

  Glide.with(itemView.context)
            .load(item.imageUrl)
            .into(ivCover)

i also tried to implement the code that mention in #153 and it did't work , when i just change <de.hdodenhof.circleimageview.CircleImageView to <ImageView everything works just fine.

@hdodenhof
Copy link
Owner

Closing this as it's certainly obsolete by now - sorry, was quite inactive here for a while.

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

2 participants