BaseRcvViewHolder

open class BaseRcvViewHolder(@LayoutRes xmlRes: Int, parent: ViewGroup, attachToRoot: Boolean = false) : RootViewHolder

Base ViewHolder for RecyclerView without ViewDataBinding.

ViewDataBinding을 사용하지 않는 RecyclerView용 기본 ViewHolder입니다.

Parameters

xmlRes

Layout resource ID.

아이템 레이아웃 리소스 ID입니다.

parent

Parent ViewGroup.

부모 ViewGroup입니다.

attachToRoot

Whether to attach to root (default: false).

루트에 붙일지 여부입니다(기본값: false).

Constructors

Link copied to clipboard
constructor(@LayoutRes xmlRes: Int, parent: ViewGroup, attachToRoot: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Clears the internal view cache manually.

내부 뷰 캐시를 수동으로 비웁니다.

Link copied to clipboard
inline fun <T : View> findViewById(id: Int): T

Finds a view by ID with type casting and caching.

타입 캐스팅과 캐싱을 적용해 findViewById를 수행합니다.

Link copied to clipboard
inline fun <T : View> findViewByIdOrNull(id: Int): T?

Finds a view by ID with null safety and caching.

null 안전성과 캐싱을 적용해 findViewById를 수행합니다.

Link copied to clipboard
fun setIsRecyclable(recyclable: Boolean)