阅读背景:

当通过底部导航条更改片段时,恢复片段状态

来源:互联网 

I have bottom navigation bar on click of item in navigation bar i am replacing fragments. I have 3 fragments A,B,C so on click of b item B fragment is loaded and in B i am calling 3-4 APIs. So now if i go to C and then again come to B a new instance of B Fragment is created and again those APIs are called how can i save the fragment instance state and not call APIs again while changing fragments. This is my code.I have bottom navigation bar on click of item i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: