Promote grandchildren of certain views are Views

Reviewed By: astreet

Differential Revision: D3161232

fbshipit-source-id: ea313d513bd7567e32f18765d479ba0538f2efbf
This commit is contained in:
Ahmed El-Helw 2016-06-02 14:02:50 -07:00 committed by Facebook Github Bot 6
parent 9a6e61426d
commit 68c11e55ee
1 changed files with 9 additions and 0 deletions

View File

@ -77,4 +77,13 @@ public abstract class ViewGroupManager <T extends ViewGroup>
return false;
}
/**
* Returns whether or not this View type should promote its grandchildren as Views. This is an
* optimization for Scrollable containers when using Nodes, where instead of having one ViewGroup
* containing a large number of draw commands (and thus being more expensive in the case of
* an invalidate or re-draw), we split them up into several draw commands.
*/
public boolean shouldPromoteGrandchildren() {
return false;
}
}