Android
[Android] 전체화면 전환
개발하는개발자
2018. 8. 17. 14:24
반응형
타이틀바 없애기
styles.xml 에서
<style>
1 2 3 | <!--No Title Bar--> <item name="windowNoTitle">true</item> <item name="windowActionBar">false</item> | cs |
</style>
상태바 없애기
Activity onCreate()함수에서
1 2 3 4 5 6 7 8 9 | @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.activity_main); } | cs |
설정 끝!
반응형