Full screen에 투명 activity로 Style 바꾸기
/res/values/styles.xml 에서(없으면 생성)
<style name="fullScreenTranslucent" parent="android:Theme.Black.NoTitleBar.Fullscreen">
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
</style>
넣어주고
manifest.xml에서 해당 activity에
android:theme="@style/fullScreenTranslucent"
추가하면 끝
======================================================================
참고로 parent에 있는 android:Theme.Black.NoTitleBar.Fullscreen은
아래와 같이 정의되어있음.
(안드로이드 기본 소스라서 수정할 필요는 없음)
<style name="Theme.Black.NoTitleBar.Fullscreen">
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
':::::: STUDY :::::: > Android' 카테고리의 다른 글
[Android] ArrayList에서의 clear()와 removeAll() 차이점 (1) | 2014.02.14 |
---|---|
[Android] Handler에서 lint warning 제거 (0) | 2014.02.12 |
Failed to allocate memory: 8 (0) | 2013.10.24 |
Bitmap & BitmapDrawable (0) | 2013.09.12 |
화면 크기 구하기 (0) | 2013.09.11 |