[Error]requestFeature() must be called before adding content
2018. 11. 29. 13:50ㆍCoding/Android Studio
728x90
requestFeature() must be called before adding content
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
setContentView(R.layout.activity_menu);
}
setContentView()위에 getWindow().requestFeature()를 먼저해주자.
728x90
'Coding > Android Studio' 카테고리의 다른 글
SharedPreferences 사용법 (0) | 2018.12.23 |
---|---|
ImageView의 Background Color 바꾸기 (0) | 2018.12.11 |
drawable 폴더 사용법 xxxhdpi, xxhdpi, xhdpi... (0) | 2018.11.25 |
RecyclerView의 클릭 이벤트 (0) | 2018.11.25 |
RecyclerView의 GridLayoutManager 사용법 (0) | 2018.11.25 |