HasOverlappingRendering () and two ImageViews

I have a custom View that contains, among others, two ImageViews on top of each other. I set hasOverlappingRendering() to return false, and I had no problem setting alpha.

But doesn't it contain overlapping rendering (two ImageViews )? Shouldn't it be some kind of (graphic) error?

+4
source share
1 answer

Late answer. But better late than never. The answer is that it does not contain overlapping rendering. I found this video really useful.

Google engineers explain with an example what happens when you return false from hasOverlappingRendering ().

+4
source

Source: https://habr.com/ru/post/1484817/


All Articles