mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
11 lines
No EOL
439 B
Kotlin
11 lines
No EOL
439 B
Kotlin
package com.lagradost.cloudstream3
|
|
|
|
import android.view.LayoutInflater
|
|
import androidx.annotation.LayoutRes
|
|
import androidx.recyclerview.widget.RecyclerView
|
|
import com.lagradost.cloudstream3.ui.HeaderViewDecoration
|
|
|
|
fun setHeaderDecoration(view: RecyclerView, @LayoutRes headerViewRes: Int) {
|
|
val headerView = LayoutInflater.from(view.context).inflate(headerViewRes, null)
|
|
view.addItemDecoration(HeaderViewDecoration(headerView))
|
|
} |