android - Nested fragment problems on orientation change -
i have situation.
- a drawer layout -> each section fragment
- a section contain page viewer (3 fragments )
- each fragment contains recyclerview , each item fragment
i have problems.
when orientation of screen changes move first fragment of page adapter.
if write in 1 of these fragments , sceeen orientation change lose everything.
same problems onpause etc. how can manage situation? thanks.
make sure using getchildfragmentmanager() instead of getfragmentmanager()/getsupportfragmentmanager() inside nested fragment.
Comments
Post a Comment