{"id":13644229,"url":"https://github.com/yingLanNull/ScrollLayout","last_synced_at":"2025-04-21T07:30:39.090Z","repository":{"id":42879490,"uuid":"65867243","full_name":"yingLanNull/ScrollLayout","owner":"yingLanNull","description":"上拉滑动上滑拖出 类似百度地图抽屉拖拽效果  Upward sliding out","archived":false,"fork":false,"pushed_at":"2018-02-01T01:12:05.000Z","size":12620,"stargazers_count":796,"open_issues_count":19,"forks_count":163,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-09T16:44:06.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yingLanNull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-17T01:52:15.000Z","updated_at":"2024-11-01T02:48:02.000Z","dependencies_parsed_at":"2022-07-09T08:46:16.051Z","dependency_job_id":null,"html_url":"https://github.com/yingLanNull/ScrollLayout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingLanNull%2FScrollLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingLanNull%2FScrollLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingLanNull%2FScrollLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yingLanNull%2FScrollLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yingLanNull","download_url":"https://codeload.github.com/yingLanNull/ScrollLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250014545,"owners_count":21360969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:59.411Z","updated_at":"2025-04-21T07:30:34.078Z","avatar_url":"https://github.com/yingLanNull.png","language":"Java","readme":"# ScrollLayout\n## Abstract 摘要\n在ScrollView或者ListView里面使用ViewPager.支持手势上拉滑出,中途停顿,下滑退出页面,类似百度地图内场景抽屉拖拽效果效果\n\n## Gif 动画\n![1](https://github.com/yingLanNull/ScrollLayout/blob/master/Show/demo.gif)\n\n## Similar 类似使用\n![1](https://github.com/yingLanNull/ScrollLayout/blob/master/Show/Screenshot18.png)\n![2](https://github.com/yingLanNull/ScrollLayout/blob/master/Show/Screenshot42.png)\n![3](https://github.com/yingLanNull/ScrollLayout/blob/master/Show/Screenshot58.png)\n\n## Demo 下载APK体验\n[下载 Download Demo](https://github.com/yingLanNull/ScrollLayout/raw/master/Show/app-debug.apk)\n\n## Usage 使用方法\n### Step 1\n#### Gradle 配置\n```\ndependencies {\n    compile 'com.yinglan.scrolllayout:scrolllayout:1.0.2'\n}\n```\n\n### Step 2\n\n#### Function and parameter definitions 功能与参数定义\n\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n     \u003ctd align=\"center\"\u003eScrollLayout\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003eContentRecyclerView\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003eContentListView\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003eContentScrollView\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n  \u003ctdead\u003e\n    \u003ctr\u003e\n      \u003cth align=\"center\"\u003e配置参数\u003c/th\u003e\n      \u003cth align=\"center\"\u003e参数含义\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/tdead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003eallowHorizontalScroll\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e是否支持横向滚动\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003eexitOffset\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e最低部退出状态时可看到的高度，0为不可见\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003eisSupportExit\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e是否支持下滑退出，支持会有下滑到最底部时的回调\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003emaxOffset\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e打开状态时内容显示区域的高度\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003eminOffset\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e关闭状态时最上方预留高度\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003emode\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e位置状态，关闭、打开、底部\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\n#### In layout\n```\n\t    \u003ccom.yinglan.scrolllayout.ScrollLayout\n\t        xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n            android:id=\"@+id/scroll_down_layout\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:background=\"#000000\"\n\n            app:allowHorizontalScroll=\"true\"  //是否支持横向滚动\n            app:exitOffset=\"0dp\"              //最低部退出状态时可看到的高度，0为不可见\n            app:isSupportExit=\"true\"\t      //是否支持下滑退出，支持会有下滑到最底部时的回调\n            app:maxOffset=\"260dp\"             //打开状态时内容显示区域的高度\n            app:minOffset=\"50dp\"              //关闭状态时最上方预留高度\n            app:mode=\"open\"\u003e                  //默认位置状态，关闭、打开、底部\n\n```\n\n### or\n\n#### In Java Code\n```\n\t{\n\t    mScrollLayout.setMinOffset(0);\n        mScrollLayout.setMaxOffset(800);\n        mScrollLayout.setExitOffset(500);\n        mScrollLayout.setToOpen();\n        mScrollLayout.setIsSupportExit(true);\n        mScrollLayout.setAllowHorizontalScroll(true);\n        mScrollLayout.setOnScrollChangedListener(mOnScrollChangedListener);\n    }\n\n```\n## Other 其它\n依赖内包含重写的ContentScrollView、ContentListView与ContentRecyclerView\n可在ScrollLayout里面里面使用ViewPager等功能，配合使用效果更佳。\n感谢[Ted](https://github.com/xiongwei-git)的库给的方向。\n\n## License\nThe work done has been licensed under Apache License 2.0. The license file can be found\n[here](LICENSE). You can find out more about the license at:\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\n","funding_links":[],"categories":["滚动效果(Scroll)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FyingLanNull%2FScrollLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FyingLanNull%2FScrollLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FyingLanNull%2FScrollLayout/lists"}