[英]How to reload fragment when the back button is hit
how to reload a fragment when back button is pressed. 按下后退按钮时如何重新加载片段。 I have handled the back button code, i am getting to the place where in the fragment needs to be reloaded, but i am failing in reloading the fragments. 我已经处理了后退按钮代码,我到达需要重新加载片段中的位置,但是我无法重新加载片段。
I need my changes to be visible on screen, so i should reload. 我需要我的更改在屏幕上可见,所以我应该重新加载。 any simple steps/? 任何简单的步骤/?
覆盖Fragment.onResume()并根据更改在那里更新您的Fragment。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.