Cannot resolve method 'getSupportFragmentManager ( )' inside Fragment

后端 未结 14 762
别跟我提以往
别跟我提以往 2020-12-01 05:16

I found the message Cannot resolve method \'getSupportFragmentManager ( )\' I want to fragment as activity. because I want to use Maps on the tabs swipe.

pub         


        
14条回答
  •  难免孤独
    2020-12-01 05:34

    I tried all above, but none working

    Finally tried this my own

    getBaseActivity().getFragmentManager()
    

    and is working .. :)

提交回复
热议问题