Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

在滑动页面的时候当一个控件滑出屏幕外后再次进入屏幕时该控件会重新渲染一遍,这是怎么回是,可以解决吗 #205

Open
blacknewnew1989 opened this issue Dec 24, 2020 · 2 comments

Comments

@blacknewnew1989
Copy link

No description provided.

@blacknewnew1989 blacknewnew1989 changed the title 在滑动页面的时候当一个控件滑出屏幕外后再次进入屏幕时改控件会重新渲染一遍,这是怎么回是,可以解决吗 在滑动页面的时候当一个控件滑出屏幕外后再次进入屏幕时该控件会重新渲染一遍,这是怎么回是,可以解决吗 Dec 24, 2020
@kebeyDing
Copy link

问题解决了吗

@jingquanquan2018
Copy link

这个是RecyclerView的特性,一个Holder滑动到屏幕外会被回收,再次滑到屏幕内Adapter会重新走onBindViewHolder生命周期

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants