Component - Item keys for performance
This UI concept shows how using unique item keys in a list helps Android efficiently update only changed items, improving app performance and smoothness.
This UI concept shows how using unique item keys in a list helps Android efficiently update only changed items, improving app performance and smoothness.
RecyclerView ├─ Adapter │ ├─ ViewHolder (Item with key 1) │ ├─ ViewHolder (Item with key 2) │ └─ ViewHolder (Item with key 3) └─ LayoutManager
override fun getItemId(position: Int) = position.toLong()
Pass the test and this pattern moves unknown