The ListViewAdapter implementation returns true from hasStableIds:
|
public hasStableIds(): boolean { |
|
return true; |
|
} |
But in fact, the item IDs are just reflecting the item positions:
|
public getItemId(i: number) { |
|
return long(i); |
|
} |
So if the items are rearranged, or removed, the IDs are no longer stable.
The ListViewAdapter implementation returns true from hasStableIds:
NativeScript/tns-core-modules/ui/list-view/list-view.android.ts
Lines 229 to 231 in 6e06eba
But in fact, the item IDs are just reflecting the item positions:
NativeScript/tns-core-modules/ui/list-view/list-view.android.ts
Lines 225 to 227 in 6e06eba
So if the items are rearranged, or removed, the IDs are no longer stable.