navigator
navigator copied to clipboard
Inflation should have a hook which allows it to be async
Done, but now Activity callbacks break because ViewController cannot be bound to a non-existent view (and therefore cannot be obtained from it): ViewController must be bound to StateKey
inside a service-tree and not to View
itself.
Binding controller to StateKey
implies service-tree
integration.
Controllers are killed. This is under consideration.
Temporarily, I totally forgot about it.
Maybe? If someone wants it...
Do I understand correctly, that this could be used to preload views in the background before they are needed? Or rather just get the inflation off the main thread during navigating?
Or rather just get the inflation off the main thread during navigating?
This, by allowing replacing the LayoutInflater.from(context).inflate(...)
call in the DefaultStateChanger
with new AsyncLayoutInflater(context).inflate()
and make the default also be callback-based, and allow a LayoutInflationStrategy
to be set.
Would definitely be an interesting addition.