ConsecutiveScroller
ConsecutiveScroller copied to clipboard
ConsecutiveScrollerLayout是Android下支持多个滑动布局(RecyclerView、WebView、ScrollView等)和普通控件(TextView、ImageView、LinearLayou、自定义View等)持续连贯滑动的容器,它使所有的子View像一个整体一样连续...
使用ConsecutiveScrollerLayout 无法让B盖在A上面,别的控件可以使用margTop:-30dp,意思是B盖在A距离A底部30dp的距离
Activity根布局ConsecutiveScrollerLayout 嵌套TextView、ConsecutiveViewPager,TextView吸顶。ConsecutiveViewPager里面是两个Fragment,Fragment里面又是ConsecutiveScrollerLayout 嵌套TextView。此时如何让Fragment里面的TextView吸顶同时让Activity的TextView移出屏幕?
一加9RT Android12系统 app:layout_isSticky="true"不吸顶 Android11及以下都没问题
改如何设置使得scrollToPosition能改生效呢?
 为什么不能滑动呢 别说悬浮了
看一下RecyclerView的onTouchEvent跟scrollBy的区别,主要是scrollBy没有触发mGapWorker.postFromTraversal(this, dx, dy);。我通过反射,在scrollBy之后调用就正常了,具体的逻辑还没有深究。