The getItemId in the sample code should not return position. If items are added or removed it will break the RecyclerView.