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

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -