I have a reference to one of my Fragment
s obtained by:
Fragment fragmentByTag = getChildFragmentManager().findFragmentByTag(tabName);
Now I need to get it's View
, which was setup on its onCreateView()
method. I tried:
View view = fragmentByTag.getView();
but the view
is always null
.
Meaning I have a reference to a Fragment
which was correctly instantiated and shown, no doubts. Having a reference to it I need to get a layout
associated with it.