Add setHasOverlappingRendering() method
View.hasOverlappingRendering() is an important performance tweak that subclasses can override to do the right thing return false when appropriate to avoid expensive operations when view is translucent). But this requires subclassing View to get this behavior. This new API allows the property to be set from outside, enabling standard views to have this behavior set. When the new method is called, the behavior will derive from whatever it was set to. Otherwise, it will default to the old/overriden behavior. Issue #16561361 Make hasOverlappingRendering settable from outside/XML Change-Id: If0fbc8667cdb82b1d85e795e782716a07196f3c0
Loading
Please register or sign in to comment