Android/Android UI
[Android UI] 다크 모드 테마 배경색 지정하는 방법
2024. 12. 2. 20:11반응형
/app
├── res
│ ├── themes
│ │ ├── themes.xml
│ │ └── themes.xml (night)
themes.xml (night) 파일을 원하는 배경색으로 수정해준다.
아래는 하얀색으로 설정하는 코드이다.
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="Base.Theme.AssignmentUI5" parent="Theme.Material3.DayNight.NoActionBar">
<item name="android:windowBackground">@color/white</item>
</style>
</resources>
반응형
'Android > Android UI' 카테고리의 다른 글
(비) [Android UI] Android 위젯 종류 (0) | 2022.09.30 |
---|