Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hasOverlappingRendering() and two ImageViews

I have a custom View, which contains, amongst others, two ImageViews on top of each other. I set hasOverlappingRendering() to return false, and haven't had any issues while setting alpha.

But doesn't it really contain overlapping rendering (the two ImageViews)? Shouldn't this be a (graphical) error of some sort?

like image 918
Fabian Zeindl Avatar asked Oct 03 '22 22:10

Fabian Zeindl


1 Answers

A late answer.. But better late than never. The answer is that doesn't contain overlapping rendering. I found this video really useful.

Google engineers are explaining with an example what is happening when you return false from the hasOverlappingRendering().

like image 61
Alexios Karapetsas Avatar answered Oct 12 '22 19:10

Alexios Karapetsas