Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

ScrollableLayout

> 编程语言
Open source

共同头部+ViewPager+ListView http://blog.csdn.net/w7822938/article/details/47173047

778 stars0 likes2 views
WebsiteGitHub

About

共同头部+ViewPager+ListView http://blog.csdn.net/w7822938/article/details/47173047

ScrollableLayout

共同头部+ViewPager+ListView(AdapterView)|RecyclerView|ScrollView|WebView
blog:http://blog.csdn.net/w7822938/article/details/47173047
安装包放在/demo-apk,可以直接安装看效果

UPDATE NOTE:

2015/12/18: 添加对WebView的支持.
2015/12/11: 添加canPtr()方法,支持下拉刷新(demo以android-Ultra-Pull-To-Refresh为例.
2015/8/31:
添加对RecyclerView的支持.

效果如下:

Usage

dependencies {
	compile 'com.github.cpoopc:scrollablelayoutlib:1.0.1' // 目前只发布到jcenter
}

1.xml


  
        
        
  

  
        
        
  

    

2.xxFragment|xxView|.. implements ScrollableHelper.ScrollableContainer

@Override
    public View getScrollableView() {
        return scrollView;
    }

3.设置当前container

mScrollLayout.getHelper().setCurrentScrollableContainer(scrollableContainer)

Issues· 25 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言