The ViewBuilder class is responsible for creating and releasing views. It uses an InstancePool to manage reusable instances of views.
ViewBuilder
InstancePool
Creates a view of the specified class and initializes it with the given state.
The type of the view.
The class of the view to create.
The initial state to set on the view.
The created view.
Releases the specified view back into the instance pool.
The view to release.
The
ViewBuilder
class is responsible for creating and releasing views. It uses anInstancePool
to manage reusable instances of views.