Is there a way to optimise number of DataBindingUtil.inflate()?

  android, android-recyclerview, binding, kotlin

It’s more of a theoretical question I guess. If I have a recycler view where I bind items that have 2 views(closed and full) the BindingUtil.inflate() is called insanly oft and it causes scrolling to be NOT fast. I’m looking for some ideas how can I optimise the calls of inflate() so that scrolling is always fast.

I’ve tried of course google the question and find some ideas by myself, but I’m not sure whether I ask the right question.

Source: Android Questions

LEAVE A COMMENT