Android Studio/기능 사용법

Android Studio : 앱의 액션바를 없애는 방법

신강희 2024. 6. 10. 12:13
728x90

< Android Studio : 앱의 액션바를 없애는 방법 >

 

# 새로운 프로젝트를 생성후 최초로 실행화면 앱화면 상단에 액션바가 출력된다!

- 필요한 기능이나 버튼을 가리는 경우가 있어서 해당 액션바를 삭제해야 할때가 있다.

 

# 그럴경우, res > values > themes > themes.xml 파일로 진입

- DarkActionBar를 NoAtctionBar로 수정!!

<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Base application theme. -->
    <style name="Theme.SimpleContacts" parent="Theme.MaterialComponents.DayNight.NoActionBar">

 

# 재실행 해보면 깔끔하게 사라져 있다!

 

다음 게시글로 계속~!

 

반응형