Closed DineshBalayan closed 4 years ago
This is not a library issue. this is happening because RecyclerView uses "Scrapped view" where it doesn't create new views instead use existing one to solve add this in you ViewHolder
override fun getItemId(position: Int): Long {
return position.toLong()
}
override fun getItemViewType(position: Int): Int {
return position
}
This is not a library issue. this is happening because RecyclerView uses "Scrapped view" where it doesn't create new views instead use existing one to solve add this in you ViewHolder
override fun getItemId(position: Int): Long { return position.toLong() } override fun getItemViewType(position: Int): Int { return position }
Thanks it works @Aashu-Dubey
I simply added fab menu in adapter row, when i click on fab menu at 0th position fab buttons are visible its ok but it also updating UI for 7th, 14th .. and so on items items, this issue i found for all positions clicks.
class ExteriorAdapter(val photos: MutableList, val listener1: ImagesClick) :
RecyclerView.Adapter() {
}