Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Issue when progress used in list or recycler view #21

Open
Mahan3340 opened this issue Feb 19, 2019 · 0 comments
Open

Issue when progress used in list or recycler view #21

Mahan3340 opened this issue Feb 19, 2019 · 0 comments

Comments

@Mahan3340
Copy link

I really like your lib but there is a problem that made me switch to another lib for now and that's When the progress is used in a listview or recyclerview row with holder pattern, when the view is reused the progress has its old value till the next update arrives ( from upload/download service for example). although I disable animation and setprogress to 0 at initial it, its not fast enough and it would be visible for a second to the user. the list view patter is like below:

if(view == null)
   init ...
  else
   {
     holder = ...
   }
   if(isDownloading)
    { 
       setProgres(0) // set progress to 0 if it's the first time
       setProgress()
    }
    else
    {
        setProgress(0)
        hideProgressView()
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant