WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); layoutParams.flags = WindowManager.LayoutParams.FLAG_DIM_BEHIND; layoutParams.dimAmount = 0.8f; // 투명도 0 ~ 1 getWindow().setAttributes(layoutParams);
위 내용은 onCreate에 넣어주고
android:theme="@android:style/Theme.Translucent"
이건 AndroidManifest.xml 에서 해당 액티비티에 아래 속성을 넣어준다
Linsoo
의 저작물인 이 저작물은(는)
크리에이티브 커먼즈 저작자표시-동일조건변경허락 4.0 국제 라이선스
에 따라 이용할 수 있습니다.