【光环助手V5.5.0】首页顶部tab-游戏单广场(UI)https://git.ghzs.com/pm/halo-app-issues/-/issues/1599 【光环助手V5.5.0】首页/版块内容列表-游戏单广场(UI)https://git.ghzs.com/pm/halo-app-issues/-/issues/1600
24 lines
662 B
Kotlin
24 lines
662 B
Kotlin
package com.gh.common.view
|
|
|
|
import android.content.Context
|
|
import android.util.AttributeSet
|
|
import android.view.MotionEvent
|
|
import androidx.recyclerview.widget.RecyclerView
|
|
|
|
class StackRecyclerView : RecyclerView {
|
|
constructor(context: Context) : super(context)
|
|
|
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
|
|
|
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(
|
|
context,
|
|
attrs,
|
|
defStyleAttr
|
|
)
|
|
|
|
override fun dispatchTouchEvent(ev: MotionEvent): Boolean {
|
|
parent.requestDisallowInterceptTouchEvent(true)
|
|
return super.dispatchTouchEvent(ev)
|
|
}
|
|
}
|