TextView scrolling is resetting when I update a different TextView from the same ListView row

前端 未结 1 1932
清歌不尽
清歌不尽 2021-01-13 07:50

I have a listview and for a specific item I\'m refreshing the remaining time every second. It works fine, but I\'m having a small bug. Whenever I call

durat         


        
相关标签:
1条回答
  • 2021-01-13 08:32

    It sounds like the textviews are set to wrap_content. That will trigger a layout pass whenever the text is changed. Try using match_parent or setting the width and height to a fixed value, so that changing the text will not trigger a layout pass

    0 讨论(0)
提交回复
热议问题