androidandroid-recyclerviewandroid-livedataandroid-workmanagerdownload-manager

How can I show a Downloads List using RecyclerView?


[Reference to Blog/Code/Repos will be most helpful]


Solution

  • Answering my own question(strange!).

    1. I used Fetch Downloader Library
    2. Initialized and used the "Fetch Instance" as a Singleton
    3. Added the download using tag (Maybe I wrongly used the tag. It was supposed to be used for group of downloads. But I used one tag for each download. But it worked.)
    4. Now I did following in the ViewHolder's bind() method :

    Note : The code can not be shared for non-disclosure purposes. Can share small snippets if you find this confusing.