pull/1013/head
parent
c22fe1e466
commit
7bf6eef2aa
@ -1,15 +1,19 @@ |
|||||||
package io.legado.app.ui.widget |
package io.legado.app.ui.widget.recycler |
||||||
|
|
||||||
import android.content.Context |
import android.content.Context |
||||||
import androidx.recyclerview.widget.RecyclerView |
|
||||||
import android.util.AttributeSet |
import android.util.AttributeSet |
||||||
import android.view.MotionEvent |
import android.view.MotionEvent |
||||||
|
import androidx.recyclerview.widget.RecyclerView |
||||||
import kotlin.math.abs |
import kotlin.math.abs |
||||||
|
|
||||||
class RecyclerViewAtViewPager2 : RecyclerView { |
class RecyclerViewAtPager2 : RecyclerView { |
||||||
constructor(context: Context) : super(context) |
constructor(context: Context) : super(context) |
||||||
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) |
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) |
||||||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) |
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super( |
||||||
|
context, |
||||||
|
attrs, |
||||||
|
defStyleAttr |
||||||
|
) |
||||||
|
|
||||||
private var startX = 0 |
private var startX = 0 |
||||||
private var startY = 0 |
private var startY = 0 |
Loading…
Reference in new issue