android.util.AndroidRuntimeException: requestFeature() must be called before adding content
生活随笔
收集整理的这篇文章主要介绍了
android.util.AndroidRuntimeException: requestFeature() must be called before adding content
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
问题
Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding contentat com.android.internal.policy.PhoneWindow.requestFeature(PhoneWindow.java:347)
这个问题是
requestWindowFeature(Window.FEATURE_NO_TITLE);
要现在setContentView()前面 即可。
总结
以上是生活随笔为你收集整理的android.util.AndroidRuntimeException: requestFeature() must be called before adding content的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Subscriber class xxx
- 下一篇: java.lang.IndexOutOf