Slide 1
Slide 1 text
AndroidView時代のコードと比較
NestedWebViewの実装(簡略化する)
class NestedWebView (...) : WebView, NestedScrollingChild {
private val mChildHelper = NestedScrollingChildHelper(this)
override fun onTouchEvent(...): Boolean {...}
override fun setNestedScrollingEnabled(...) {...}
override fun isNestedScrollingEnabled(...): Boolean {...}
override fun startNestedScroll(...): Boolean {...}
override fun stopNestedScroll(...) {...}
override fun hasNestedScrollingParent(...): Boolean {...}
override fun dispatchNestedScroll(...): Boolean {...}
override fun dispatchNestedPreScroll(...): Boolean {...}
override fun dispatchNestedFling(...): Boolean {...
override fun dispatchNestedPreFling(...): Boolean {...}
}