I have [main]Fragment
with two ViewPagers
in it. Each ViewPager
contains several Fragments
in it. ViewPager
's Fragments
obtain data into their ListViews
from [main]Fragment
. I need to update data in all ListViews
, which comes from [main]Fragment
.
I've tried to remove current [main]Fragment
and add new one (reload it), but when I am calling .remove([main]Fragment)
or .detach([main]Fragment)
methods in .supportFragmentManager()
[main]Fragment
is not destroying or detaching, it just hiding and I cant add new one, just make .atach([main]Fragment)
for current... Reload activity is bad idea. Please help me.