feat(home): 장르 크리에이터 페이지 리소스를 추가한다
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package kr.co.vividnext.sodalive.v2.main.home.ui
|
||||
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import androidx.recyclerview.widget.PagerSnapHelper
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
|
||||
class HomePagerSnapRecyclerView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
defStyleAttr: Int = 0
|
||||
) : RecyclerView(context, attrs, defStyleAttr) {
|
||||
private val snapHelper = PagerSnapHelper()
|
||||
|
||||
init {
|
||||
clipToPadding = false
|
||||
if (onFlingListener == null) snapHelper.attachToRecyclerView(this)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user