Nativescript: Listview items are reusing when scrolling

前端 未结 2 1644
梦谈多话
梦谈多话 2021-01-26 06:21

I am trying to add products to Cart by clicking STORE []. Then, I am changing label\'s color for that added list.

After that,

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-26 06:42

    Yes listview items are indeed reused in order to save up memory.

    Here you can find the approach used to save your problem which consists in binding the listview item to a certain property in your model.

提交回复
热议问题