From d5348dd10c40534a53a3f94e7b859347388a0f21 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 28 Apr 2021 16:03:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/widget/recycler/SwipeRefreshLayout.kt | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 app/src/main/java/io/legado/app/ui/widget/recycler/SwipeRefreshLayout.kt diff --git a/app/src/main/java/io/legado/app/ui/widget/recycler/SwipeRefreshLayout.kt b/app/src/main/java/io/legado/app/ui/widget/recycler/SwipeRefreshLayout.kt new file mode 100644 index 000000000..9a0ba9f44 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/widget/recycler/SwipeRefreshLayout.kt @@ -0,0 +1,109 @@ +package io.legado.app.ui.widget.recycler + +import android.content.Context +import android.util.AttributeSet +import android.view.View +import android.view.ViewGroup +import androidx.core.view.* + +class SwipeRefreshLayout @JvmOverloads constructor( + context: Context, + attrs: AttributeSet? = null +) : ViewGroup(context, attrs), NestedScrollingParent3, + NestedScrollingParent2, NestedScrollingChild3, NestedScrollingChild2, NestedScrollingParent, + NestedScrollingChild { + + init { + + } + + override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) { + TODO("Not yet implemented") + } + + override fun startNestedScroll(axes: Int, type: Int): Boolean { + TODO("Not yet implemented") + } + + override fun stopNestedScroll(type: Int) { + TODO("Not yet implemented") + } + + override fun hasNestedScrollingParent(type: Int): Boolean { + TODO("Not yet implemented") + } + + override fun dispatchNestedScroll( + dxConsumed: Int, + dyConsumed: Int, + dxUnconsumed: Int, + dyUnconsumed: Int, + offsetInWindow: IntArray?, + type: Int + ): Boolean { + TODO("Not yet implemented") + } + + override fun dispatchNestedPreScroll( + dx: Int, + dy: Int, + consumed: IntArray?, + offsetInWindow: IntArray?, + type: Int + ): Boolean { + TODO("Not yet implemented") + } + + override fun dispatchNestedScroll( + dxConsumed: Int, + dyConsumed: Int, + dxUnconsumed: Int, + dyUnconsumed: Int, + offsetInWindow: IntArray?, + type: Int, + consumed: IntArray + ) { + TODO("Not yet implemented") + } + + override fun onStartNestedScroll(child: View, target: View, axes: Int, type: Int): Boolean { + TODO("Not yet implemented") + } + + override fun onNestedScrollAccepted(child: View, target: View, axes: Int, type: Int) { + TODO("Not yet implemented") + } + + override fun onStopNestedScroll(target: View, type: Int) { + TODO("Not yet implemented") + } + + override fun onNestedScroll( + target: View, + dxConsumed: Int, + dyConsumed: Int, + dxUnconsumed: Int, + dyUnconsumed: Int, + type: Int + ) { + TODO("Not yet implemented") + } + + override fun onNestedPreScroll(target: View, dx: Int, dy: Int, consumed: IntArray, type: Int) { + TODO("Not yet implemented") + } + + override fun onNestedScroll( + target: View, + dxConsumed: Int, + dyConsumed: Int, + dxUnconsumed: Int, + dyUnconsumed: Int, + type: Int, + consumed: IntArray + ) { + TODO("Not yet implemented") + } + + +} \ No newline at end of file