I need access to already evaluated width and height of all component in Fragment view. So I need some notification which tell me, that view of fragment layouting phase is already done.
In activity I can use onWindowFocusChanged(boolean hasFocus)
life cycle method, but fragment doesn't have this method.
Only way that i found is use getView().addOnLayoutChangeListener()
. But it call multiple times and only last call is usefull for me.
Exist any better way how to call some after layout is done in fragment's view?