我知道這個問題已經被問到了堆棧,但我嘗試了所有的解決方案,但沒有任何use.Still我得到下同錯誤引起:android.util.AndroidRuntimeException:在添加內容之前必須調用requestFeature()android異常
產生的原因:android.util.AndroidRuntimeException:requestFeature()必須在添加內容
下面之前被稱爲是代碼 -
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
**requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);**
setContentView(R.layout.info);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
}
我試過很多環節LIK e給出如下 - https://stackoverflow.com/search?q=requestFeature%28%29+must+be+called+before+adding+content
是否有任何解決方案???
看到我的編輯答案 – Hardik
yeah..i試過一個also..but沒有用.. –
你有沒有添加任何風格**主題**爲您的應用程序?? –