If I understand correctly, I can’t do this inside `Fragment.onCreateView`
Jason Atwood
3
You can from your onCreateView get a reference to the ViewGroup where you’ll add your async inflated layout.
The AsyncLayoutInflater is not made for setContentView(…) on onCreateView(…) themselves, but to load layouts to add to already present view when inflation is done.
If you just load all the UI asynchronously, the user will have a smooth empty screen, which can’t fee smooth as the UI is empty. But if you load a layout which is a little long to inflate (after making everything for it to inflate fast), adding it after async inflation can help making the UI smooth during this.