If you just want to know when the Fragment layout is fully inflated, you can use onActivityCreated(Bundle savedInstanceState) , which is called after onCreate and onCreateView .
You can find more information on the Fragment life cycle here.
In any case, if you want a more accurate answer, send part of your code and make an example to better describe your purpose.
Roberto lombardini
source share