Closed kelvinwatson closed 1 year ago
That's something that is still on my todo list. In the beginning, the method's documentation didn't include the warning. When they added it, I wasn't able to find a better solution. The implementation currently relies on BlendMode
, which seems to require withSaveLayer
.
Open for suggestions. :)
Are you experiencing any lags, due to the shimmer libary?
Had a deeper look in the meantime. It is not possible to get rid of the withSaveLayer
. As the shimmer is usually not shown for an eternity, the effect on the battery should be minimal.
Was doing some digging on
canvas.withSaveLayer
and noticed that its documentation says:However, the documentation doesn't offer any alternative. Is there any recommendation for replacing this call? https://developer.android.com/topic/performance/vitals/render#rendering_performance_renderthread