Promote grandchildren of certain views are Views
Reviewed By: astreet Differential Revision: D3161232 fbshipit-source-id: ea313d513bd7567e32f18765d479ba0538f2efbf
This commit is contained in:
parent
9a6e61426d
commit
68c11e55ee
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue