Package-level declarations

Functions

Link copied to clipboard

Gets a color using ContextCompat for backward compatibility.

역호환성을 위해 ContextCompat을 사용하여 색상을 가져옵니다.

Link copied to clipboard
fun Context.getColorSafe(@ColorRes colorRes: Int, defaultColor: Int): Int

Safely gets a color, returning a default color if resource is not found or invalid.

리소스를 찾을 수 없거나 유효하지 않은 경우 기본 색상을 반환하여 안전하게 색상을 가져옵니다.

Link copied to clipboard

Gets dimension pixel offset for the given dimension resource.

주어진 dimension 리소스의 픽셀 오프셋을 가져옵니다.

Link copied to clipboard

Gets dimension pixel size for the given dimension resource.

주어진 dimension 리소스의 픽셀 크기를 가져옵니다.

Link copied to clipboard

Gets a drawable using ContextCompat for backward compatibility.

역호환성을 위해 ContextCompat을 사용하여 drawable을 가져옵니다.

Link copied to clipboard

Safely gets a drawable, returning null if resource is not found or invalid.

리소스를 찾을 수 없거나 유효하지 않은 경우 null을 반환하여 안전하게 drawable을 가져옵니다.

Link copied to clipboard

Gets integer value from resources.

리소스에서 정수 값을 가져옵니다.

Link copied to clipboard

Gets string array from resources.

리소스에서 문자열 배열을 가져옵니다.

Link copied to clipboard
fun Context.getStringFormatted(@StringRes stringRes: Int, vararg args: Any): String

Gets formatted string with arguments.

인자를 사용하여 포맷된 문자열을 가져옵니다.

Link copied to clipboard

Safely gets a string, returning empty string if resource is not found or invalid.

리소스를 찾을 수 없거나 유효하지 않은 경우 빈 문자열을 반환하여 안전하게 문자열을 가져옵니다.

Link copied to clipboard

Checks if the context is destroyed or finishing.

컨텍스트가 파괴되었거나 종료 중인지 확인합니다.