안드로이드 스튜디오 배경색상 설정
조회수 2492회
안드로이드 스튜디오 배경색 디폴트가 하얀색인데 이걸 다른 색으로 한꺼번에 변경할 수 있는 법 없을까요? 지금 xml 파일이 20개는 넘어가서 하나하나 코드 집어넣기가 애매하네요.
한번에 색상 바꿀 수 있는 방법 있다면 공유 부탁드립니다
-
(•́ ✖ •̀)
알 수 없는 사용자
1 답변
-
style.xml에서 원하는 테마를 작성하신 후
AndroidManifest.xml에서 적용시키세요.
ex)
style.xml <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/azure</item> <item name="colorPrimaryDark">@color/deep_sky_blue</item> <item name="colorAccent">@color/azure</item> <item name="android:windowBackground">@color/colorWhite</item> <item name="android:selectableItemBackground">@drawable/pre_lollipop_selectable_item</item> <item name="android:screenOrientation">portrait</item> <item name="actionBarStyle">@style/CustomActionBar</item> </style>
AndroidManifest.xml <application android:name=".application.BaseApplication" android:allowBackup="true" android:label="@string/app_name" android:theme="@style/AppTheme" android:windowSoftInputMode="stateAlwaysHidden"> ...
댓글 입력