android - Nested fragment problems on orientation change -


i have situation.

  1. a drawer layout -> each section fragment
  2. a section contain page viewer (3 fragments )
  3. each fragment contains recyclerview , each item fragment

i have problems.

  1. when orientation of screen changes move first fragment of page adapter.

  2. if write in 1 of these fragments , sceeen orientation change lose everything.

  3. same problems onpause etc. how can manage situation? thanks.

make sure using getchildfragmentmanager() instead of getfragmentmanager()/getsupportfragmentmanager() inside nested fragment.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -