android.util.AndroidRuntimeException: requestFeature() must be called before adding content 异常处理

大家在开发中都会处理APP原有的标题栏,让其隐藏,大家应该都使用过如下图的方法,在BaseActivity中进行的统一处理:


但是在部分手机机型中会提示错误:

android.util.AndroidRuntimeException: requestFeature() must be called before adding content

解决方案如下:


希望对大家有所帮助!微笑

猜你喜欢

转载自blog.csdn.net/chun_long/article/details/80694399
今日推荐