本网站(662p.com)打包出售,且带程序代码数据,662p.com域名,程序内核采用TP框架开发,需要联系扣扣:2360248666 /wx:lianweikj
精品域名一口价出售:1y1m.com(350元) ,6b7b.com(400元) , 5k5j.com(380元) , yayj.com(1800元), jiongzhun.com(1000元) , niuzen.com(2800元) , zennei.com(5000元)
需要联系扣扣:2360248666 /wx:lianweikj
多子view嵌套滚动通用解决方案ELinkageScroll
一路向西 · 464浏览量 · 发布于2020-11-29 +关注

作者MFC-TEC,源码ELinkageScroll,这是多子view嵌套滚动通用解决方案。

Demo运行效果


使用方法

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>


源码使用过程中,如无法搭建或有增加其他功能需求,可联系QQ:236-0248-666 ,付费搭建安装修改服务!
温馨提示:网站源码只作为学习或研究使用,如需商业使用请购买正版!

相关推荐

android画饼状图滚动效果

相关信息 冷月葬花魂 · 530浏览 · 2019-12-04 15:29:13
Android 仿MIUI果冻视图源码

相关信息 冷月葬花魂 · 507浏览 · 2019-10-31 17:05:36
自定义实现Flyme6的ViewPager指示器 安卓源码

相关信息 kenrry1992 · 657浏览 · 2019-09-12 17:04:27
一个为RecyclerView打造的轻量级快速的适配器

相关信息 kenrry1992 · 535浏览 · 2019-08-23 17:00:18
自定义跑马灯 源码MarqueeView

相关信息 冷月葬花魂 · 696浏览 · 2019-05-21 16:05:36
加载中

0评论

评论
欢迎大家关注我,有技术问题可以一起交流探讨!
  • 源码信息
  • 所需 1 点数
  • 源码作者:匿名作者
  • 源码大小:2.841 MB
  • 源码类型:android源码
  • 显示语言: 简体中文
  • 运行环境:未知
分类专栏
小鸟云服务器
扫码进入手机网页