Recyclerview Changing Items During Scroll

前端 未结 15 759
我在风中等你
我在风中等你 2020-11-27 10:38

I have a RecyclerView. Each row has a play button, textview and Progressbar. when click on the play button have to play audio from my sdcard and have to progress Progressbar

15条回答
  •  无人及你
    2020-11-27 11:12

    I had the same problem while handle a lot of data , it works with 5 because it renders the five elements that are visible on the screen but that gives prob with more elements. The thing is ..

    Sometimes RecyclerView and listView just skips Populating Data. In case of RecyclerView binding function is skipped while scrolling but when you try and debug the recyclerView adapter it will work fine as it will call onBind every time , you can also see the official google developer's view The World of listView. Around 20 min -30 min they will explain that you can never assume the getView by position will be called every time.

    so, I will suggest to use

    RecyclerView DataBinder created by satorufujiwara.

    or

    RecyclerView MultipleViewTypes Binder created by yqritc.

    These are other Binders available if you find those easy to work around .

    This is the way to deal with MultipleView Types or if you are using large amount of data . These binders can help you just read the documentation carefully that will fix it, peace!!

提交回复
热议问题