onClick method not working properly after NestedScrollView scrolled

前端 未结 7 931
梦毁少年i
梦毁少年i 2020-11-30 23:13

I used NestedScrollView with CoordinatorLayout to enable scroll animation for Toolbar (by app:layout_scrollFlags=\"scroll|enterAlways\").

NestedScrollView contain th

相关标签:
7条回答
  • 2020-11-30 23:49

    I found solution for same problem on this thread :The item inside RecyclerView can't be clicked right after scrolling

    You can fix your code by adding layout_behavior to your AppBarLayout.You can find code here Fixed AppBarLayout.Behavior .Just add this class tou your project and fix your code :

    <android.support.design.widget.AppBarLayout android:layout_width="match_parent" app:layout_behavior="yourPackageName.FixAppBarLayoutBehavior" android:layout_height="wrap_content">

    0 讨论(0)
提交回复
热议问题