阿神2017-04-17 17:33:13
There are two situations when creating a new extends Fragment inherited by a fragment. One is to import the app, in which case getFragmentManager() is used.
But the default is to inherit v4, this uses getSupportFragmentManager().
So you change fragment to import app, or change it to getSupportFragmentManager()
巴扎黑2017-04-17 17:33:13
I agree with what you said above. Which package does Fragment use? Please confirm it