Coding/Android Studio
[Kotlin]Custom Dialog Fragment 화면 꽉차게 출력하기
떡빵
2019. 8. 30. 15:06
728x90
dialogFragment를 호출하기전에 style속성을 줘서 꽉차게 만든다.
배경이 투명한걸 원하면 아래의 [android.R.style.Theme_NoTitleBar_Fullscreen] 대신에 [android.R.style.Theme_Translucent_NoTitleBar_Fullscreen]를 넣어주면 된다.
var dialog = TestDialogFragment.newInstance()
dialog.setStyle( DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_NoTitleBar_Fullscreen );
dialog.show(supportFragmentManager, "tag")
728x90