ListView: Prevent a view from recycling

后端 未结 3 1207
予麋鹿
予麋鹿 2021-02-10 05:26

I have a ListView wich use recycled views. I\'m trying to prevent a view from recycle. So I use setHasTransientState:

android.support.v4.view.ViewCompatJB

3条回答
  •  日久生厌
    2021-02-10 06:10

    Use android.support.v4.view.ViewCompat.setHasTransientState(View view, boolean hasTransientState) instead of android.support.v4.view.ViewCompatJB.setHasTransientState(View view, boolean hasTransientState)

提交回复
热议问题