# ELinkageScroll
多子view嵌套滚动通用解决方案
### Demo运行效果
<img src='https://github.com/baiduapp-tec/ELinkageScroll/blob/master/elinkagescroll.gif' width="300px" style='border: #f1f1f1 solid 1px'/><br>
# 使用方法
#### xml
```xml
<?xml version="1.0" encoding="utf-8"?>
<com.baidu.elinkagescroll.ELinkageScrollLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- 第1个子view -->
<com.baidu.elinkagescroll.view.LWebView
android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<!-- 第2个子view -->
<com.baidu.elinkagescroll.view.LLinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:textSize="22dp"
android:gravity="center"
android:background="#22ff0000"
android:text="LinearLayout"/>
<Button
android:layout_width="match_parent"
android:layout_height="200dp"
android:text="LinearLayout"
android:onClick="onLLButtonClick"/>
<TextView
android:layout_width="match_parent"
android:layout_height="150dp"
android:textSize="22dp"
android:gravity="center"
android:background="#22ff0000"
android:text="LinearLayout"/>
</com.baidu.elinkagescroll.view.LLinearLayout>
<!-- 第3个子view -->
<com.baidu.elinkagescroll.view.LRecyclerView
android:id="@+id/recycler1"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<!-- 第4个子view -->
<com.baidu.elinkagescroll.view.LTextView
android:layout_width="match_parent"
android:layout_height="300dp"
android:background="@color/colorPrimary"
android:text="TextView"
android:clickable="true"
android:textColor="#ffffff"
android:textSize="28dp"
android:gravity="center"/>
<!-- 第5个子view -->
<com.baidu.elinkagescroll.view.LRecyclerView
android:id="@+id/recycler2"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<!-- 第6个子view -->
<com.baidu.elinkagescroll.view.LScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="200dp"
android:text="ScrollView - 1"
android:textSize="22dp"
android:background="#22ff0000"
android:gravity="center"/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="#000000"/>
<TextView
android:layout_width="match_parent"
android:layout_height="200dp"
android:text="ScrollView - 2"
android:textSize="22dp"
android:background="#22ff0000"
android:gravity="center"/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="#000000"/>
<TextView
android:layout_width="match_parent"
android:layout_height="200dp"
android:text="ScrollView - 3"
android:textSize="22dp"
android:background="#22ff0000"
android:gravity="center"/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="#000000"/>
<TextView
android:layout_width="match_parent"
android:layout_height="200dp"
android:text="ScrollView - 4"
android:textSize="22dp"
android:background="#22ff0000"
android:gravity="center"/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="#000000"/>
<TextView
android:layout_width="match_parent"
android:layout_height="200dp"
android:text="ScrollView - 5"
android:textSize="22dp"
android:background="#22ff0000"
android:gravity="center"/>
</LinearLayout>
</com.baidu.elinkagescroll.view.LScrollView>
<!-- 第7个子view -->
<com.baidu.elinkagescroll.sample.LFrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_in_framelayout"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</com.baidu.elinkagescroll.sample.LFrameLayout>
</com.baidu.elinkagescroll.ELinkageScrollLayout>
```
# 联系方式
如果你在使用ELinkageScrollLayout过程中发现任何问题,你可以通过如下方式联系我:
* 邮箱:
* 微博:https://weibo.com/u/5894400455
没有合适的资源?快使用搜索试试~ 我知道了~
多子view嵌套滚动通用解决方案.zip
共109个文件
xml:48个
java:17个
png:11个
需积分: 5 0 下载量 48 浏览量
2024-01-15
08:58:39
上传
评论
收藏 2.83MB ZIP 举报
温馨提示
方案是为解决特定问题或达成特定目标而制定的一系列计划或步骤。它的作用是提供一种系统性的方法,以有效地应对挑战、优化流程或实现目标。以下是方案的主要作用: 问题解决: 方案的核心目标是解决问题。通过系统性的规划和执行,方案能够分析问题的根本原因,提供可行的解决方案,并引导实施过程,确保问题得到合理解决。 目标达成: 方案通常与明确的目标相关联,它提供了一种达成这些目标的计划。无论是企业战略、项目管理还是个人发展,方案的制定都有助于明确目标并提供达成目标的路径。 资源优化: 方案在设计时考虑了可用资源,以最大化其效用。通过明智的资源分配,方案可以在有限的资源条件下实现最大的效益,提高效率并减少浪费。 风险管理: 方案通常会对潜在的风险进行评估,并制定相应的风险管理策略。这有助于减轻潜在问题的影响,提高方案的可行性和可持续性。 决策支持: 方案提供了决策者所需的信息和数据,以便做出明智的决策。这种数据驱动的方法有助于减少不确定性,提高决策的准确性。 团队协作: 复杂的问题通常需要多个人的协同努力。方案提供了一个共同的框架,帮助团队成员理解各自的职责和任务,促进协作并确保整个团队朝着共同的目标努力。 监控与评估: 方案通常包括监控和评估的机制,以确保实施的有效性。通过定期的评估,可以及时调整方案,以适应变化的环境或新的挑战。 总体而言,方案的作用在于提供一种有序、有计划的方法,以解决问题、实现目标,并在实施过程中最大化资源利用和风险管理。
资源推荐
资源详情
资源评论
收起资源包目录
多子view嵌套滚动通用解决方案.zip (109个子文件)
gradlew.bat 2KB
executionHistory.bin 1.04MB
fileHashes.bin 245KB
classAnalysis.bin 174KB
outputFiles.bin 72KB
taskHistory.bin 22KB
resourceHashesCache.bin 18KB
last-build.bin 1B
elinkagescroll.gif 2.4MB
.gitignore 7B
build.gradle 729B
build.gradle 558B
settings.gradle 15B
gradlew 5KB
app.iml 11KB
ELinkageScroll.iml 868B
gradle-wrapper.jar 53KB
ELinkageScrollLayout.java 30KB
PosIndicator.java 11KB
LWebView.java 10KB
NestedFrameLayout.java 4KB
LFrameLayout.java 4KB
LRecyclerView.java 4KB
LScrollView.java 3KB
MainActivity.java 3KB
LinkageRecyclerAdapter.java 2KB
LLinearLayout.java 1KB
LTextView.java 1KB
LinkageScrollHandler.java 1KB
ChildLinkageEvent.java 918B
LinkageScrollHandlerAdapter.java 897B
ILinkageScroll.java 810B
ExampleInstrumentedTest.java 732B
ExampleUnitTest.java 385B
LICENSE 11KB
buildOutputCleanup.lock 17B
executionHistory.lock 17B
javaCompile.lock 17B
fileContent.lock 17B
fileHashes.lock 17B
README.md 6KB
ic_launcher_round.png 15KB
ic_launcher_round.png 10KB
ic_launcher.png 9KB
ic_launcher_round.png 7KB
ic_launcher.png 6KB
ic_launcher_round.png 5KB
ic_launcher.png 4KB
ic_launcher.png 3KB
ic_launcher_round.png 3KB
ic_launcher.png 2KB
common_scrollbar_vertical.9.png 103B
proguard-rules.pro 751B
gradle.properties 728B
local.properties 440B
gradle-wrapper.properties 232B
cache.properties 51B
gc.properties 0B
gc.properties 0B
gradle_models.ser 113KB
build_file_checksums.ser 540B
workspace.xml 51KB
activity_main.xml 6KB
ic_launcher_background.xml 5KB
Project.xml 3KB
ic_launcher_foreground.xml 2KB
AndroidManifest.xml 792B
linkage_rv_simple_item.xml 665B
Gradle__android_arch_lifecycle_livedata_core_1_1_1_aar.xml 640B
gradle.xml 634B
Gradle__android_arch_lifecycle_viewmodel_1_1_1_aar.xml 629B
Gradle__android_arch_lifecycle_livedata_1_1_1_aar.xml 626B
Gradle__android_arch_lifecycle_runtime_1_1_1_aar.xml 623B
Gradle__android_arch_core_runtime_1_1_1_aar.xml 612B
Gradle__com_android_support_swiperefreshlayout_28_0_0_aar.xml 604B
Gradle__com_android_support_coordinatorlayout_28_0_0_aar.xml 603B
Gradle__com_android_support_support_fragment_28_0_0_aar.xml 602B
Gradle__com_android_support_recyclerview_v7_28_0_0_aar.xml 601B
Gradle__com_android_support_support_compat_28_0_0_aar.xml 600B
Gradle__com_android_support_drawerlayout_28_0_0_aar.xml 598B
Gradle__com_android_support_appcompat_v7_28_0_0_aar.xml 598B
Gradle__com_android_support_print_28_0_0_aar.xml 591B
runConfigurations.xml 564B
Gradle__android_arch_lifecycle_common_1_1_1_jar.xml 546B
Gradle__android_arch_core_common_1_1_1_jar.xml 531B
misc.xml 515B
Gradle__com_android_support_animated_vector_drawable_28_0_0_aar.xml 445B
Gradle__com_android_support_support_vector_drawable_28_0_0_aar.xml 444B
Gradle__com_android_support_localbroadcastmanager_28_0_0_aar.xml 442B
Gradle__com_android_support_versionedparcelable_28_0_0_aar.xml 440B
Gradle__com_android_support_asynclayoutinflater_28_0_0_aar.xml 440B
Gradle__com_android_support_support_core_utils_28_0_0_aar.xml 439B
Gradle__com_android_support_slidingpanelayout_28_0_0_aar.xml 438B
Gradle__com_android_support_support_core_ui_28_0_0_aar.xml 436B
Gradle__com_android_support_cursoradapter_28_0_0_aar.xml 434B
Gradle__com_android_support_interpolator_28_0_0_aar.xml 433B
Gradle__com_android_support_documentfile_28_0_0_aar.xml 433B
Gradle__com_android_support_customview_28_0_0_aar.xml 431B
Gradle__com_android_support_viewpager_28_0_0_aar.xml 430B
Gradle__com_android_support_loader_28_0_0_aar.xml 427B
共 109 条
- 1
- 2
资源评论
JJJ69
- 粉丝: 6027
- 资源: 5613
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功