앱 실행시 첫 배경 없애기

대우김·2023년 7월 18일

Android 짤막 팁

목록 보기
1/3
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowIsTranslucent">true</item>
</style>

테마로 가서 windowContentOverlay와 windowIsTranslucent를 추가해주면 된다.

  • android:windowContentOverlay :
    Widnow의 Cotents area에 overlay를 해주는 옵션값. 이 값을 @null로 주어 값 자체를 투명하게 해준다

  • android:windowIsTranslucent :
    Window의 색상을 투명으로 해준다

profile
큰큰

2개의 댓글

comment-user-thumbnail
2023년 7월 18일

훌륭한 글이네요. 감사합니다.

답글 달기
comment-user-thumbnail
2023년 7월 18일

잘 봤습니다. 좋은 글 감사합니다.

답글 달기