공부/Android

안드로이드 팝업 액티비티 테두리 없애기(android popup activity no border)

밥성수 2013. 7. 17. 13:41

팝업으로 띄우는 액티비티 클래스 내에 다음 코드를 추가하면 끝.


 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) {

   

    super.onApplyThemeResource(theme, resid, first);

   

    theme.applyStyle(style.Theme_Panel, true);

}  

     


또는



 getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));