MCPcopy Index your code
hub / github.com/donkingliang/ConsecutiveScroller

github.com/donkingliang/ConsecutiveScroller @4.6.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 4.6.4 ↗ · + Follow
300 symbols 782 edges 27 files 113 documented · 38%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

简介

ConsecutiveScrollerLayout是Android下支持多个滑动布局(RecyclerView、ViewPager、WebView、ScrollView等)和普通控件(TextView、ImageView、LinearLayou、自定义View等)持续连贯滑动的容器,它使所有的子View像一个整体一样连续顺畅滑动。

ConsecutiveScrollerLayout支持多种模式的布局吸顶功能,能动态控制吸顶View的显示位置和状态,能适用于大部分的业务场景。

ConsecutiveScrollerLayout能通过实现接口,支持复杂的、多层嵌套下的滑动布局的滑动处理。

ConsecutiveScrollerLayout支持NestedScrolling机制。

效果图

sample sticky permanent_sticky sink_sticky viewpager

引入依赖

在Project的build.gradle在添加以下代码

allprojects {
      repositories {
         ...
         maven { url 'https://jitpack.io' }
      }
   }

在Module的build.gradle在添加以下代码


implementation 'com.github.donkingliang:ConsecutiveScroller:4.6.3'

使用文档

查看文档请移步 wiki

LICENSE

Apache-2.0 license

ConsecutiveScroller 基于 Apache-2.0 协议进行分发和使用,更多信息参见 协议文件

Extension points exported contracts — how you extend this code

IConsecutiveScroller (Interface)
@Author donkingliang @Description ConsecutiveScrollerLayout默认只会处理它的直接子view的滑动事件, 为了让ConsecutiveScrollerLayout能支持滑动子view的 [6 …
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/IConsecutiveScroller.java
OnStickyChangeListener (Interface)
监听吸顶变化 [2 implementers]
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java
OnPermanentStickyChangeListener (Interface)
监听常驻吸顶变化 [2 implementers]
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java
OnScrollChangeListener (Interface)
滑动监听 [1 implementers]
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java

Core symbols most depended-on inside this repo

get
called by 40
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java
setAdapter
called by 17
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveViewPager2.java
isConsecutiveScrollerChild
called by 16
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java
computeVerticalScrollOffset
called by 11
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java
setScrollState
called by 10
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java
canScrollVertically
called by 10
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java
scrollSelf
called by 9
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java
computeVerticalScrollOffset
called by 9
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java

Shape

Method 265
Class 30
Interface 4
Enum 1

Languages

Java100%

Modules by API surface

consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java151 symbols
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveViewPager2.java29 symbols
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ScrollUtils.java25 symbols
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveViewPager.java10 symbols
app/src/main/java/com/donkingliang/consecutivescrollerdemo/adapter/RecyclerViewAdapter.java10 symbols
app/src/main/java/com/donkingliang/consecutivescrollerdemo/ViewPagerActivity.java8 symbols
app/src/main/java/com/donkingliang/consecutivescrollerdemo/ViewPager2Activity.java8 symbols
app/src/main/java/com/donkingliang/consecutivescrollerdemo/adapter/TabPagerAdapter.java5 symbols
consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/OverScrollInterpolator.java4 symbols
app/src/main/java/com/donkingliang/consecutivescrollerdemo/view/MyFrameLayout.java4 symbols
app/src/main/java/com/donkingliang/consecutivescrollerdemo/adapter/MyFragmentPagerAdapter.java4 symbols
app/src/main/java/com/donkingliang/consecutivescrollerdemo/StickyActivity.java4 symbols

For agents

$ claude mcp add ConsecutiveScroller \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page