반응형
레이아웃을 어둡게 변경하고 싶어서 찾아보던 중 엄청 쉬운 방법을 발견했다.
[ AndroidManifest.xml ]
android:theme="@style/Theme.AppCompat"
안드로이드 매니페스트에서 theme부분만 Theme.AppCompat으로 바꿔주면 된다.
[적용 부분]
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.AppCompat">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>


반응형
'앱 개발 > Java' 카테고리의 다른 글
[안드로이드] 프래그먼트에 라이브러리를 이용한 차트 그리기 (0) | 2022.01.17 |
---|---|
[안드로이드] fragment 키보드(키패드) 내리기 (0) | 2022.01.13 |
[안드로이드] 권한 요청 팝업 (한번에 여러개 요청) (0) | 2022.01.03 |
안드로이드 DB 데이터 csv 파일로 추출 (0) | 2021.12.23 |
자바 16진수 문자 출력할때 ffff 출력 현상 + 쉬프트연산 및 계산 (0) | 2021.12.22 |