Package-level declarations

Types

Link copied to clipboard

Enum representing slide directions for slide animations.

슬라이드 애니메이션의 방향을 나타내는 열거형입니다.

Link copied to clipboard
data class SnackBarOption(val animMode: Int? = null, val bgTint: Int? = null, val bgTintStateList: ColorStateList? = null, val textColor: Int? = null, val textColorStateList: ColorStateList? = null, val isGestureInsetBottomIgnored: Boolean? = null, val actionTextColor: Int? = null, val actionTextColorStateList: ColorStateList? = null, val actionText: CharSequence? = null, val action: (View) -> Unit? = null)

Configuration options for customizing SnackBar appearance and behavior.

SnackBar 외관과 동작을 커스터마이징하기 위한 설정 옵션입니다.

Functions

Link copied to clipboard
fun View.animateScale(fromScale: Float = scaleX, toScale: Float, duration: Long = 300, onComplete: () -> Unit? = null)

Animates the view's scale with customizable parameters.

커스터마이징 가능한 매개변수로 View의 스케일을 애니메이션합니다.

Link copied to clipboard
fun View.applyWindowInsetsAsPadding(left: Boolean = true, top: Boolean = true, right: Boolean = true, bottom: Boolean = true)

Applies window insets as padding to the view.
Useful for handling system bars and keyboard.

윈도우 인셋을 View의 패딩으로 적용합니다.
시스템 바 및 키보드 처리에 유용합니다.

Link copied to clipboard

Binds a lifecycle observer to the current LifecycleOwner.
Replaces the observer if the owner changes, prevents duplicate registration.

현재 LifecycleOwner에 라이프사이클 옵저버를 바인딩합니다.
Owner가 변경되면 옵저버를 교체하고, 중복 등록을 방지합니다.

Link copied to clipboard

Makes the TextView text bold.

TextView 텍스트를 굵게 만듭니다.

Link copied to clipboard

Makes the TextView text bold and italic.

TextView 텍스트를 굵은 기울임꼴로 만듭니다.

Link copied to clipboard

Sets ScaleType to CENTER_CROP.

ScaleType을 CENTER_CROP으로 설정합니다.

Link copied to clipboard

Sets ScaleType to CENTER_INSIDE.

ScaleType을 CENTER_INSIDE로 설정합니다.

Link copied to clipboard

Clears tint from ImageView.

ImageView에서 색조를 제거합니다.

Link copied to clipboard
inline fun View.doOnLayout(crossinline action: (view: View) -> Unit)

Executes a block when the view has been laid out and measured.
Useful for getting actual view dimensions.

View가 레이아웃되고 측정된 후 블록을 실행합니다.
실제 View 크기를 얻는 데 유용합니다.

Link copied to clipboard
fun View.fadeIn(duration: Long = 300, onComplete: () -> Unit? = null)

Fades in the view with animation.

애니메이션과 함께 View를 페이드 인합니다.

Link copied to clipboard
fun View.fadeOut(duration: Long = 300, hideOnComplete: Boolean = true, onComplete: () -> Unit? = null)

Fades out the view with animation.

애니메이션과 함께 View를 페이드 아웃합니다.

Link copied to clipboard
fun View.fadeToggle(duration: Long = 300, onComplete: () -> Unit? = null)

Toggles visibility with fade animation.

페이드 애니메이션과 함께 가시성을 토글합니다.

Link copied to clipboard

Finds the host LifecycleOwner for this View.
Prioritizes Fragment's viewLifecycleOwner, falls back to Activity.

이 View의 호스트 LifecycleOwner를 찾습니다.
Fragment의 viewLifecycleOwner를 우선시하고, 없으면 Activity를 사용합니다.

Link copied to clipboard

Sets ScaleType to FIT_CENTER.

ScaleType을 FIT_CENTER로 설정합니다.

Link copied to clipboard

Sets ScaleType to FIT_XY (stretches to fill).

ScaleType을 FIT_XY로 설정합니다 (늘려서 채움).

Link copied to clipboard

Iterates over all child views of this ViewGroup.

이 ViewGroup의 모든 자식 View를 반복합니다.

Link copied to clipboard
fun ViewGroup.getLayoutInflater(@LayoutRes xmlRes: Int, attachToRoot: Boolean): View

Inflates a layout resource into this ViewGroup.

레이아웃 리소스를 이 ViewGroup에 인플레이트합니다.

Link copied to clipboard

Gets the view's location on screen as a Pair.

View의 화면상 위치를 Pair로 가져옵니다.

Link copied to clipboard

Converts TextView content to String.

TextView 내용을 String으로 변환합니다.

Link copied to clipboard

Converts EditText content to String.

EditText 내용을 String으로 변환합니다.

Link copied to clipboard

Checks if the EditText content is empty.

EditText 내용이 비어있는지 확인합니다.

Checks if the TextView content is empty.

TextView 내용이 비어있는지 확인합니다.

Link copied to clipboard

Checks if the TextView content is null or empty.

TextView 내용이 null이거나 비어있는지 확인합니다.

Link copied to clipboard

Makes the TextView text italic.

TextView 텍스트를 기울임꼴로 만듭니다.

Link copied to clipboard
fun ImageView.load(@DrawableRes drawableRes: Int, block: ImageView.() -> Unit? = null): ImageView

Loads drawable and applies transformations.

drawable을 로드하고 변환을 적용합니다.

Link copied to clipboard

Makes ImageView grayscale by setting saturation to 0.

채도를 0으로 설정하여 ImageView를 흑백으로 만듭니다.

Link copied to clipboard

Makes the TextView text normal (removes bold/italic).

TextView 텍스트를 보통으로 만듭니다 (굵게/기울임꼴 제거).

Link copied to clipboard
fun View.pulse(minScale: Float = 0.95f, maxScale: Float = 1.05f, duration: Long = 1000, repeatCount: Int = ValueAnimator.INFINITE)

Creates a pulsing animation effect.

펄스 애니메이션 효과를 생성합니다.

Link copied to clipboard

Removes grayscale filter from ImageView.

ImageView에서 흑백 필터를 제거합니다.

Link copied to clipboard

Removes strikethrough from the TextView text.

TextView 텍스트에서 취소선을 제거합니다.

Link copied to clipboard

Removes underline from the TextView text.

TextView 텍스트에서 밑줄을 제거합니다.

Link copied to clipboard
fun View.rotate(fromDegrees: Float = rotation, toDegrees: Float, duration: Long = 300, onComplete: () -> Unit? = null)

Creates a rotate animation.

회전 애니메이션을 생성합니다.

Link copied to clipboard

Sets the view's visibility to GONE.

View의 가시성을 GONE으로 설정합니다.

Link copied to clipboard

Sets the height of the view.

View의 높이를 설정합니다.

Link copied to clipboard

Sets the view height to match parent.

View의 높이를 부모에 맞춥니다.

Link copied to clipboard

Sets the view height to wrap content.

View의 높이를 내용에 맞춥니다.

Link copied to clipboard

Sets drawable resource to ImageView.

ImageView에 drawable 리소스를 설정합니다.

Link copied to clipboard

Sets the view's visibility to INVISIBLE.

View의 가시성을 INVISIBLE로 설정합니다.

Link copied to clipboard

Sets uniform margin for all sides.

모든 면에 대해 동일한 여백을 설정합니다.

Link copied to clipboard
fun View.setMargins(left: Int, top: Int, right: Int, bottom: Int)

Sets all margin values at once.

모든 여백 값을 한 번에 설정합니다.

Link copied to clipboard
fun View.setOnDebouncedClickListener(debounceTime: Long = 600, action: (View) -> Unit)

Sets a debounced click listener on this view to prevent rapid consecutive clicks.
Uses View's tag system to store timing information, preventing memory leaks.

연속적인 빠른 클릭을 방지하기 위해 디바운스된 클릭 리스너를 설정합니다.
View의 tag 시스템을 사용하여 타이밍 정보를 저장하여 메모리 누수를 방지합니다.

Link copied to clipboard

Sets uniform padding for all sides.

모든 면에 대해 동일한 패딩을 설정합니다.

Link copied to clipboard
fun View.setSize(width: Int, height: Int)

Sets both width and height of the view.

View의 너비와 높이를 모두 설정합니다.

Link copied to clipboard

Sets text color using color resource.

색상 리소스를 사용하여 텍스트 색상을 설정합니다.

Link copied to clipboard
fun ImageView.setTint(@ColorRes colorRes: Int, mode: PorterDuff.Mode = PorterDuff.Mode.SRC_IN): ImageView

Sets tint color to ImageView using color resource.

색상 리소스를 사용하여 ImageView에 색조 색상을 설정합니다.

Link copied to clipboard

Sets the view's visibility to VISIBLE.

View의 가시성을 VISIBLE로 설정합니다.

Link copied to clipboard

Sets the width of the view.

View의 너비를 설정합니다.

Link copied to clipboard

Sets the view width to match parent.

View의 너비를 부모에 맞춥니다.

Link copied to clipboard

Sets the view width to wrap content.

View의 너비를 내용에 맞춥니다.

Link copied to clipboard
fun View.shake(intensity: Float = 10.0f, duration: Long = 500, onComplete: () -> Unit? = null)

Creates a shake animation effect.

흔들기 애니메이션 효과를 생성합니다.

Link copied to clipboard
fun View.slideIn(direction: SlideDirection, distance: Float = 0.0f, duration: Long = 300, onComplete: () -> Unit? = null)

Animates view sliding in from a specific direction.

특정 방향에서 View가 슬라이드 인되는 애니메이션을 실행합니다.

Link copied to clipboard
fun View.slideOut(direction: SlideDirection, distance: Float = 0.0f, duration: Long = 300, hideOnComplete: Boolean = true, onComplete: () -> Unit? = null)

Animates view sliding out to a specific direction.

특정 방향으로 View가 슬라이드 아웃되는 애니메이션을 실행합니다.

Link copied to clipboard
fun View.snackBarMakeIndefinite(msg: CharSequence, snackBarOption: SnackBarOption? = null): Snackbar

Creates an indefinite duration Snackbar without showing it.
The Snackbar will remain visible until dismissed.

표시하지 않고 무제한 시간 Snackbar를 생성합니다.
Snackbar는 닫힐 때까지 계속 표시됩니다.

Link copied to clipboard
fun View.snackBarMakeLong(msg: CharSequence, snackBarOption: SnackBarOption? = null): Snackbar

Creates a long duration Snackbar without showing it.
Allows further customization before displaying.

표시하지 않고 긴 시간 Snackbar를 생성합니다.
표시하기 전에 추가 커스터마이징이 가능합니다.

Link copied to clipboard
fun View.snackBarMakeShort(msg: CharSequence, snackBarOption: SnackBarOption? = null): Snackbar

Creates a short duration Snackbar without showing it.
Allows further customization before displaying.

표시하지 않고 짧은 시간 Snackbar를 생성합니다.
표시하기 전에 추가 커스터마이징이 가능합니다.

Link copied to clipboard
fun View.snackBarShowIndefinite(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows an indefinite duration Snackbar from a View.

View에서 무제한 시간 Snackbar를 생성하고 표시합니다.

fun Fragment.snackBarShowIndefinite(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows an indefinite duration Snackbar from a Fragment.
Logs an error if the Fragment's view is null.

Fragment에서 무제한 시간 Snackbar를 생성하고 표시합니다.
Fragment의 view가 null이면 에러를 로깅합니다.

fun View.snackBarShowIndefinite(msg: CharSequence, customView: View, animMode: Int? = null, isGestureInsetBottomIgnored: Boolean? = null)

Creates and shows an indefinite duration Snackbar with a custom view.

커스텀 뷰로 무제한 시간 Snackbar를 생성하고 표시합니다.

Link copied to clipboard
fun View.snackBarShowLong(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows a long duration Snackbar from a View.

View에서 긴 시간 Snackbar를 생성하고 표시합니다.

fun Fragment.snackBarShowLong(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows a long duration Snackbar from a Fragment.
Logs an error if the Fragment's view is null.

Fragment에서 긴 시간 Snackbar를 생성하고 표시합니다.
Fragment의 view가 null이면 에러를 로깅합니다.

fun View.snackBarShowLong(msg: CharSequence, customView: View, animMode: Int? = null, isGestureInsetBottomIgnored: Boolean? = null)

Creates and shows a long duration Snackbar with a custom view.

커스텀 뷰로 긴 시간 Snackbar를 생성하고 표시합니다.

Link copied to clipboard
fun View.snackBarShowShort(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows a short duration Snackbar from a View.

View에서 짧은 시간 Snackbar를 생성하고 표시합니다.

fun Fragment.snackBarShowShort(msg: CharSequence, snackBarOption: SnackBarOption? = null)

Creates and shows a short duration Snackbar from a Fragment.
Logs an error if the Fragment's view is null.

Fragment에서 짧은 시간 Snackbar를 생성하고 표시합니다.
Fragment의 view가 null이면 에러를 로깅합니다.

fun View.snackBarShowShort(msg: CharSequence, customView: View, animMode: Int? = null, isGestureInsetBottomIgnored: Boolean? = null)

Creates and shows a short duration Snackbar with a custom view.

커스텀 뷰로 짧은 시간 Snackbar를 생성하고 표시합니다.

Link copied to clipboard

Stops any pulsing animation on this view.

이 View의 펄스 애니메이션을 중지합니다.

Link copied to clipboard

Adds strikethrough to the TextView text.

TextView 텍스트에 취소선을 추가합니다.

Link copied to clipboard

Chains multiple ImageView operations using a DSL-style block.

DSL 스타일 블록을 사용하여 여러 ImageView 작업을 연쇄합니다.

fun TextView.style(block: TextView.() -> Unit): TextView

Chains multiple styling operations using a DSL-style block.

DSL 스타일 블록을 사용하여 여러 스타일링 작업을 연쇄합니다.

Link copied to clipboard

Safely converts EditText content to Double.
Returns null if the conversion fails.

EditText 내용을 안전하게 Double로 변환합니다.
변환에 실패하면 null을 반환합니다.

Safely converts TextView content to Double.
Returns null if the conversion fails.

TextView 내용을 안전하게 Double로 변환합니다.
변환에 실패하면 null을 반환합니다.

Link copied to clipboard

Safely converts EditText content to Float.
Returns null if the conversion fails.

EditText 내용을 안전하게 Float로 변환합니다.
변환에 실패하면 null을 반환합니다.

Safely converts TextView content to Float.
Returns null if the conversion fails.

TextView 내용을 안전하게 Float로 변환합니다.
변환에 실패하면 null을 반환합니다.

Link copied to clipboard

Safely converts EditText content to Int.
Returns null if the conversion fails.

EditText 내용을 안전하게 Int로 변환합니다.
변환에 실패하면 null을 반환합니다.

Safely converts TextView content to Int.
Returns null if the conversion fails.

TextView 내용을 안전하게 Int로 변환합니다.
변환에 실패하면 null을 반환합니다.

Link copied to clipboard

Creates a long duration Toast without showing it.
Allows further customization before displaying.

표시하지 않고 긴 시간 Toast를 생성합니다.
표시하기 전에 추가 커스터마이징이 가능합니다.

Link copied to clipboard

Creates a short duration Toast without showing it.
Allows further customization before displaying.

표시하지 않고 짧은 시간 Toast를 생성합니다.
표시하기 전에 추가 커스터마이징이 가능합니다.

Link copied to clipboard

Creates and shows a long duration Toast message.

긴 시간 Toast 메시지를 생성하고 표시합니다.

Creates and shows a long duration Toast message from a Fragment.
Logs an error if the Fragment's context is null.

Fragment에서 긴 시간 Toast 메시지를 생성하고 표시합니다.
Fragment의 context가 null이면 에러를 로깅합니다.

Link copied to clipboard

Creates and shows a short duration Toast message.

짧은 시간 Toast 메시지를 생성하고 표시합니다.

Creates and shows a short duration Toast message from a Fragment.
Logs an error if the Fragment's context is null.

Fragment에서 짧은 시간 Toast 메시지를 생성하고 표시합니다.
Fragment의 context가 null이면 에러를 로깅합니다.

Link copied to clipboard

Unbinds the lifecycle observer from this View.
Should be called when detaching the view or changing parent.

이 View에서 라이프사이클 옵저버를 언바인딩합니다.
View를 분리하거나 부모를 변경할 때 호출해야 합니다.

Link copied to clipboard

Adds underline to the TextView text.

TextView 텍스트에 밑줄을 추가합니다.