简体   繁体   中英

Android DataBinding : View flickering

I am using GridView with image items, loading image via A ndroid DataBinding technology . If add some new item to list and notify the adapter then the GridView gets flickering why its occur ? if i am not using DataBinding technology then its work fine.

如果在列表中使用数据绑定,则应始终调用executePendingBindings() - 这会导致绑定立即执行,而不是等待下一帧(这是导致闪烁的原因)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM