[您好,有一个嵌套的滚动视图,我想在单击侦听器上设置嵌套的滚动视图,这样它在向上滚动嵌套的滚动视图时会执行某些操作,例如在向上滚动嵌套的滚动视图时显示吐司显示向上滚动并用于显示在向下滚动嵌套滚动视图时向下滚动的烤面包]
这是我的嵌套滚动视图
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_margin="5dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lorem_ipsum"
/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>