报错信息 : 在 RecyclerView.Adapter
中的 onBindViewHolder
方法中 , 报如下错误 ;
Do not treat position as fixed;
only use immediately and call holder.getAdapterPosition() to look it up later
该错误 , 并不会影响编译 , 只是在显示时报错 , 不太好看 ;
修改的话 , 可以 禁用 Lint 检查 , 点击
" Suppress: Add @SuppressLint("RecyclerView") annotation
" 按钮 ;
会在该参数前生成一个注解 ;