Dialog Config
Properties
Custom animation style resource for dialog transitions.
다이얼로그 전환에 대한 커스텀 애니메이션 스타일 리소스입니다.
Whether the dialog can be canceled by back button or outside touch.
Defaults to true.
뒤로 가기 버튼이나 외부 터치로 다이얼로그를 취소할 수 있는지 여부입니다.
기본값은 true입니다.
Gravity value for dialog positioning on screen.
Defaults to Gravity.CENTER.
화면에서 다이얼로그 위치 지정을 위한 gravity 값입니다.
기본값은 Gravity.CENTER입니다.
Functions
Returns the current background color of the dialog.
다이얼로그의 현재 배경색을 반환합니다.
Returns the current background drawable resource ID of the dialog.
다이얼로그의 현재 배경 drawable 리소스 ID를 반환합니다.
Resizes the dialog based on screen size ratios.
Width is calculated as screen width * widthRatio, or WRAP_CONTENT if null.
Height is calculated as screen height * heightRatio, or WRAP_CONTENT if null.
화면 크기 비율을 기반으로 다이얼로그 크기를 조정합니다.
너비는 화면 너비 * widthRatio로 계산되며, null이면 WRAP_CONTENT입니다.
높이는 화면 높이 * heightRatio로 계산되며, null이면 WRAP_CONTENT입니다.
Sets the background color of the dialog.
Clears any previously set background drawable.
If rootView is null, only stores the color to be applied when view is created.
다이얼로그의 배경색을 설정합니다.
이전에 설정된 배경 drawable을 지웁니다.
rootView가 null인 경우, 뷰 생성 시 적용될 색상만 저장합니다.
Sets the background drawable of the dialog.
Clears any previously set background color.
If rootView is null, only stores the resource ID to be applied when view is created.
다이얼로그의 배경 drawable을 설정합니다.
이전에 설정된 배경색을 지웁니다.
rootView가 null인 경우, 뷰 생성 시 적용될 리소스 ID만 저장합니다.