티스토리 뷰

manifests.xml 파일에서 thema를 바꿔주면 된다.

다음 코드를 적용해보자.

android:theme="@android:style/Theme.NoTitleBar


혹은 아래와같이 테마를 같이 적용해도 좋다.


만약 기존에 잘 돌아가던 앱이 런타임오류가 나서 비정상 종료 한다면....

이 문제로 구글에 검색을 해보니 알맞은 검색결과가 stackoverflow에 있었다.


http://stackoverflow.com/questions/22828118/app-crashes-after-setting-to-theme-notitlebar-fullscreen

ActionBarActivity assumes you are using an ActionBar, while Theme.NoTitleBar themes remove the ActionBar (as that is part of the title bar on newer devices and ActionBarActivityassumes you are using a Theme.AppCompat theme which controls styling for the ActionBar).

Change your activity to extend FragmentActivity if you are okay with not having an Action Bar, although as per the Android design docs is a critical component for making your app feel like an Android app (although some would say that games are granted more leeway).

 

간단히 요약하자면 MainActivity가 ActionBarActivity를 extends하고 있어서 발생하는 오류입니다.

FragmentActivity를 extneds 하는 것으로 바꿔주기만 하면 크래시 없이 정상적으로 잘 실행됩니다.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함