Recyclerview在滚动期间更改项目
我有一个RecyclerView。每行都有一个播放按钮,textview和Progressbar。当单击“播放”按钮时,必须播放sdcard中的音频并必须进度条。问题是,当我向下滚动recyclerview时,更改下一行的进度条。这意味着我一次可以在屏幕上容纳5个项目。当我滚动到第六行时,第六行搜索栏突然改变。 public class ListAdapter extends RecyclerView.Adapter { private List<Historyitem> stethitems; public Context mContext; public Activity activity; public Handler mHandler; static MediaPlayer mPlayer; static Timer mTimer; public ListAdapter(Activity activity,Context mContext,List<Historyitem> stethitems) { this.stethitems = stethitems; this.mContext = mContext; this.activity = activity; } @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { View …