selfstarter

requestFeature() must be called before adding content Error Solve 본문

카테고리 없음

requestFeature() must be called before adding content Error Solve

selfstarter 2020. 3. 13. 16:20

requestFeature() must be called before adding content Error Solve

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE); // add between super.onCreate function and setContentView
setContentView(R.layout.activity_main);
}

 

but This solution is better

only changed titlebar status

 

<item name="windowNoTitle">true</item>

Comments