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