android - 使用Fragment时出现了奇怪的错误
高洛峰
高洛峰 2017-04-17 17:31:13
0
3
432

API版本是23

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
PHPzhong

Try getSupportFragmentManager()

阿神

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()

巴扎黑

I agree with what you said above. Which package does Fragment use? Please confirm it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template