Fragment's onResume() not called when popped from backstack

前端 未结 7 2042
梦谈多话
梦谈多话 2021-02-04 01:17

Hi I am developing android application in which I am using I am using single Activity and 3 fragments. So consider I have 3 fragments A B C. When I switch from A to

7条回答
  •  情话喂你
    2021-02-04 02:12

    you can use this method of fragment :

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
    }
    

提交回复
热议问题