1
0
Fork 0
fenix/app/src/main/java/org/mozilla/fenix/utils/view/ViewHolder.kt

14 lines
487 B
Kotlin

package org.mozilla.fenix.utils.view
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.extensions.LayoutContainer
/**
* A base class for all recycler view holders supporting Android Extensions-style view access.
* This allows views to be used without an `itemView.<id>` prefix, and additionally caches them.
*/
abstract class ViewHolder(
override val containerView: View
) : RecyclerView.ViewHolder(containerView), LayoutContainer