{"id":15471667,"url":"https://github.com/getactivity/nestedscrolllayout","last_synced_at":"2025-04-13T18:22:11.073Z","repository":{"id":108699021,"uuid":"145107253","full_name":"getActivity/NestedScrollLayout","owner":"getActivity","description":"支持嵌套滚动的布局","archived":false,"fork":false,"pushed_at":"2023-07-02T16:45:35.000Z","size":2424,"stargazers_count":145,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-19T01:15:41.217Z","etag":null,"topics":["nestedframelayout","nestedlayout","nestedlinearlayout","nestedrelativelayout","nestedscrollframelayout","nestedscrollingchild","nestedscrollingchild2","nestedscrollingchild3","nestedscrollingparent","nestedscrollingparent2","nestedscrollingparent3","nestedscrolllinearlayout","nestedscrollrelativelayout","nestedscrollviewpager","nestedscrollwebview","nestedview","nestedviewpager"],"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/getActivity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://raw.githubusercontent.com/getActivity/Donate/master/picture/pay_ali.png"}},"created_at":"2018-08-17T10:29:15.000Z","updated_at":"2024-10-14T08:13:26.000Z","dependencies_parsed_at":"2024-10-31T22:04:14.750Z","dependency_job_id":"f8913d67-2b13-43b6-b0b7-034178d621b6","html_url":"https://github.com/getActivity/NestedScrollLayout","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"92af3c5ac52ebbc967258afe36b3f1992b5a8761"},"previous_names":["getactivity/nestedscrolllayout"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getActivity%2FNestedScrollLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getActivity%2FNestedScrollLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getActivity%2FNestedScrollLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getActivity%2FNestedScrollLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getActivity","download_url":"https://codeload.github.com/getActivity/NestedScrollLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248759134,"owners_count":21157096,"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":["nestedframelayout","nestedlayout","nestedlinearlayout","nestedrelativelayout","nestedscrollframelayout","nestedscrollingchild","nestedscrollingchild2","nestedscrollingchild3","nestedscrollingparent","nestedscrollingparent2","nestedscrollingparent3","nestedscrolllinearlayout","nestedscrollrelativelayout","nestedscrollviewpager","nestedscrollwebview","nestedview","nestedviewpager"],"created_at":"2024-10-02T02:21:12.197Z","updated_at":"2025-04-13T18:22:11.052Z","avatar_url":"https://github.com/getActivity.png","language":"Java","readme":"# 嵌套滚动布局\n\n* 项目地址：[Github](https://github.com/getActivity/NestedScrollLayout)\n\n* 可以扫码下载 Demo 进行演示或者测试，如果扫码下载不了的，[点击此处可直接下载](https://github.com/getActivity/NestedScrollLayout/releases/download/2.0/NestedScrollLayout.apk)\n\n![](picture/download_demo_apk_qr_code.png)\n\n* 众所周知，WebView、LinearLayout、FrameLayout、RelativeLayout 是不支持 NestedScroll（嵌套滚动）特性的，于是就有了这个库，专门解决这一问题\n\n![](picture/dynamic_figure.gif)\n\n#### 集成步骤\n\n* 如果你的项目 Gradle 配置是在 `7.0` 以下，需要在 `build.gradle` 文件中加入\n\n```groovy\nallprojects {\n    repositories {\n        // JitPack 远程仓库：https://jitpack.io\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n* 如果你的 Gradle 配置是 `7.0` 及以上，则需要在 `settings.gradle` 文件中加入\n\n```groovy\ndependencyResolutionManagement {\n    repositories {\n        // JitPack 远程仓库：https://jitpack.io\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n* 配置完远程仓库后，在项目 app 模块下的 `build.gradle` 文件中加入远程依赖\n\n```groovy\nandroid {\n    // 支持 JDK 1.8 及以上\n    compileOptions {\n        targetCompatibility JavaVersion.VERSION_1_8\n        sourceCompatibility JavaVersion.VERSION_1_8\n    }\n}\n\ndependencies {\n    // 嵌套滚动布局：https://github.com/getActivity/NestedScrollLayout\n    implementation 'com.github.getActivity:NestedScrollLayout:2.0'\n}\n```\n\n#### AndroidX 兼容\n\n* 如果项目是基于 **AndroidX** 包，请在项目 `gradle.properties` 文件中加入\n\n```text\n# 表示将第三方库迁移到 AndroidX\nandroid.enableJetifier = true\n```\n\n* 如果项目是基于 **Support** 包则不需要加入此配置\n\n#### 框架用法\n\n* NestedScrollWebView\n\n```xml\n\u003ccom.hjq.nested.scroll.layout.NestedScrollWebView\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\" /\u003e\n```\n\n* NestedScrollFrameLayout\n\n```xml\n\u003ccom.hjq.nested.scroll.layout.NestedScrollFrameLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n    \n\u003c/com.hjq.nested.scroll.layout.NestedScrollFrameLayout\u003e\n```\n\n* NestedScrollLinearLayout\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003ccom.hjq.nested.scroll.layout.NestedScrollLinearLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\u003e\n\n\u003c/com.hjq.nested.scroll.layout.NestedScrollLinearLayout\u003e\n```\n\n* NestedScrollRelativeLayout\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003ccom.hjq.nested.scroll.layout.NestedScrollRelativeLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n\u003c/com.hjq.nested.scroll.layout.NestedScrollRelativeLayout\u003e\n```\n\n* NestedScrollViewPager\n\n```xml\n\u003ccom.hjq.nested.scroll.layout.NestedScrollViewPager\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:layout_behavior=\"@string/appbar_scrolling_view_behavior\" /\u003e\n```\n\n#### 开源项目列表\n\n* 安卓技术中台：[AndroidProject](https://github.com/getActivity/AndroidProject) ![](https://img.shields.io/github/stars/getActivity/AndroidProject.svg) ![](https://img.shields.io/github/forks/getActivity/AndroidProject.svg)\n\n* 安卓技术中台 Kt 版：[AndroidProject-Kotlin](https://github.com/getActivity/AndroidProject-Kotlin) ![](https://img.shields.io/github/stars/getActivity/AndroidProject-Kotlin.svg) ![](https://img.shields.io/github/forks/getActivity/AndroidProject-Kotlin.svg)\n\n* 权限框架：[XXPermissions](https://github.com/getActivity/XXPermissions) ![](https://img.shields.io/github/stars/getActivity/XXPermissions.svg) ![](https://img.shields.io/github/forks/getActivity/XXPermissions.svg)\n\n* 吐司框架：[Toaster](https://github.com/getActivity/Toaster) ![](https://img.shields.io/github/stars/getActivity/Toaster.svg) ![](https://img.shields.io/github/forks/getActivity/Toaster.svg)\n\n* 网络框架：[EasyHttp](https://github.com/getActivity/EasyHttp) ![](https://img.shields.io/github/stars/getActivity/EasyHttp.svg) ![](https://img.shields.io/github/forks/getActivity/EasyHttp.svg)\n\n* 标题栏框架：[TitleBar](https://github.com/getActivity/TitleBar) ![](https://img.shields.io/github/stars/getActivity/TitleBar.svg) ![](https://img.shields.io/github/forks/getActivity/TitleBar.svg)\n\n* 悬浮窗框架：[EasyWindow](https://github.com/getActivity/EasyWindow) ![](https://img.shields.io/github/stars/getActivity/EasyWindow.svg) ![](https://img.shields.io/github/forks/getActivity/EasyWindow.svg)\n\n* Shape 框架：[ShapeView](https://github.com/getActivity/ShapeView) ![](https://img.shields.io/github/stars/getActivity/ShapeView.svg) ![](https://img.shields.io/github/forks/getActivity/ShapeView.svg)\n\n* 语种切换框架：[MultiLanguages](https://github.com/getActivity/MultiLanguages) ![](https://img.shields.io/github/stars/getActivity/MultiLanguages.svg) ![](https://img.shields.io/github/forks/getActivity/MultiLanguages.svg)\n\n* Gson 解析容错：[GsonFactory](https://github.com/getActivity/GsonFactory) ![](https://img.shields.io/github/stars/getActivity/GsonFactory.svg) ![](https://img.shields.io/github/forks/getActivity/GsonFactory.svg)\n\n* 日志查看框架：[Logcat](https://github.com/getActivity/Logcat) ![](https://img.shields.io/github/stars/getActivity/Logcat.svg) ![](https://img.shields.io/github/forks/getActivity/Logcat.svg)\n\n* Android 版本适配：[AndroidVersionAdapter](https://github.com/getActivity/AndroidVersionAdapter) ![](https://img.shields.io/github/stars/getActivity/AndroidVersionAdapter.svg) ![](https://img.shields.io/github/forks/getActivity/AndroidVersionAdapter.svg)\n\n* Android 代码规范：[AndroidCodeStandard](https://github.com/getActivity/AndroidCodeStandard) ![](https://img.shields.io/github/stars/getActivity/AndroidCodeStandard.svg) ![](https://img.shields.io/github/forks/getActivity/AndroidCodeStandard.svg)\n\n* Android 资源大汇总：[AndroidIndex](https://github.com/getActivity/AndroidIndex) ![](https://img.shields.io/github/stars/getActivity/AndroidIndex.svg) ![](https://img.shields.io/github/forks/getActivity/AndroidIndex.svg)\n\n* Android 开源排行榜：[AndroidGithubBoss](https://github.com/getActivity/AndroidGithubBoss) ![](https://img.shields.io/github/stars/getActivity/AndroidGithubBoss.svg) ![](https://img.shields.io/github/forks/getActivity/AndroidGithubBoss.svg)\n\n* Studio 精品插件：[StudioPlugins](https://github.com/getActivity/StudioPlugins) ![](https://img.shields.io/github/stars/getActivity/StudioPlugins.svg) ![](https://img.shields.io/github/forks/getActivity/StudioPlugins.svg)\n\n* 表情包大集合：[EmojiPackage](https://github.com/getActivity/EmojiPackage) ![](https://img.shields.io/github/stars/getActivity/EmojiPackage.svg) ![](https://img.shields.io/github/forks/getActivity/EmojiPackage.svg)\n\n* AI 资源大汇总：[AiIndex](https://github.com/getActivity/AiIndex) ![](https://img.shields.io/github/stars/getActivity/AiIndex.svg) ![](https://img.shields.io/github/forks/getActivity/AiIndex.svg)\n\n* 省市区 Json 数据：[ProvinceJson](https://github.com/getActivity/ProvinceJson) ![](https://img.shields.io/github/stars/getActivity/ProvinceJson.svg) ![](https://img.shields.io/github/forks/getActivity/ProvinceJson.svg)\n\n* Markdown 语法文档：[MarkdownDoc](https://github.com/getActivity/MarkdownDoc) ![](https://img.shields.io/github/stars/getActivity/MarkdownDoc.svg) ![](https://img.shields.io/github/forks/getActivity/MarkdownDoc.svg)\n\n#### 微信公众号：Android轮子哥\n\n![](https://raw.githubusercontent.com/getActivity/Donate/master/picture/official_ccount.png)\n\n#### Android 技术 Q 群：10047167\n\n#### 如果您觉得我的开源库帮你节省了大量的开发时间，请扫描下方的二维码随意打赏，要是能打赏个 10.24 :monkey_face:就太:thumbsup:了。您的支持将鼓励我继续创作:octocat:（[点击查看捐赠列表](https://github.com/getActivity/Donate)）\n\n![](https://raw.githubusercontent.com/getActivity/Donate/master/picture/pay_ali.png) ![](https://raw.githubusercontent.com/getActivity/Donate/master/picture/pay_wechat.png)\n\n#### 广告区\n\n* 我现在任腾讯云服务器推广大使，大家如果有购买服务器的需求，可以通过下面的链接购买\n\n[![](https://upload-dianshi-1255598498.file.myqcloud.com/upload/nodir/345X200-9ae456f58874df499adf7c331c02cb0fed12b81d.jpg)](https://curl.qcloud.com/A6cYskvv)\n\n[【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中](https://curl.qcloud.com/A6cYskvv)\n\n[![](https://upload-dianshi-1255598498.file.myqcloud.com/345-200-b28f7dee9552f4241ea6a543f15a9798049701d4.jpg)](https://curl.qcloud.com/up4fQsdn)\n\n[【腾讯云】中小企业福利专场，多款刚需产品，满足企业通用场景需求](https://curl.qcloud.com/up4fQsdn)\n\n## License\n\n```text\nCopyright 2018 Huang JinQun\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```","funding_links":["https://raw.githubusercontent.com/getActivity/Donate/master/picture/pay_ali.png"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetactivity%2Fnestedscrolllayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetactivity%2Fnestedscrolllayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetactivity%2Fnestedscrolllayout/lists"}