Code Monkey home page Code Monkey logo

Comments (5)

donkingliang avatar donkingliang commented on September 7, 2024

支持外部嵌套SmartRefreshLayout

from consecutivescroller.

317764920 avatar 317764920 commented on September 7, 2024

@donkingliang 我这边发现上拉加载不起作用呢 ,下拉刷新是没问题的

from consecutivescroller.

317764920 avatar 317764920 commented on September 7, 2024

@donkingliang
`<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/refreshLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
app:srlEnablePreviewInEditMode="true">

    <com.donkingliang.consecutivescroller.ConsecutiveScrollerLayout
        android:id="@+id/scrollerLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:overScrollMode="never"
        android:scrollbars="none">

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="13dp"
            android:background="@color/transparent" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
                android:id="@+id/tv_date"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/dp12"
                android:layout_marginEnd="@dimen/dp12"
                android:text="时间"
                android:textColor="#ff999999"
                android:textSize="12sp" />

            <View
                style="@style/StyleDividerThinTheme"
                android:layout_height="13dp"
                android:background="@color/transparent" />

            <TextView
                android:id="@+id/tv_title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/dp12"
                android:layout_marginEnd="@dimen/dp12"
                android:text="标题"
                android:textColor="#ff333333"
                android:textSize="24sp" />

        </LinearLayout>

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="13dp"
            android:background="@color/transparent" />

        <com.mxcj.articles.widget.MyRelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <WebView
                android:id="@+id/webView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginStart="@dimen/dp12"
                android:layout_marginEnd="@dimen/dp12"
                android:overScrollMode="never"
                android:scrollbars="none" />

        </com.mxcj.articles.widget.MyRelativeLayout>

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="5dp"
            android:background="#eee" />

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="14dp"
            android:background="@color/transparent" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/dp12"
                android:layout_marginEnd="@dimen/dp12"
                android:text="相关阅读"
                android:textColor="#ff333333"
                android:textSize="16sp" />
        </LinearLayout>

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="2dp"
            android:background="@color/transparent" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/recyclerview_recommend"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:overScrollMode="never" />

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="5dp"
            android:background="#eee" />

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="14dp"
            android:background="@color/transparent" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="@dimen/dp12"
                android:layout_marginEnd="@dimen/dp12"
                android:text="评论区"
                android:textColor="#ff333333"
                android:textSize="16sp" />
        </LinearLayout>

        <View
            style="@style/StyleDividerThinTheme"
            android:layout_height="2dp"
            android:background="@color/transparent" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/recyclerview_comment"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:overScrollMode="never" />

    </com.donkingliang.consecutivescroller.ConsecutiveScrollerLayout>

</com.scwang.smartrefresh.layout.SmartRefreshLayout>`

from consecutivescroller.

donkingliang avatar donkingliang commented on September 7, 2024

你的SmartRefreshLayout设置了上拉加载了吗。SmartRefreshLayout默认是不开启上拉加载的哦

from consecutivescroller.

317764920 avatar 317764920 commented on September 7, 2024

@donkingliang 我找到问题了 ,是因为我这边设置了不满一屏不开启上拉 ,应该没什么问题了

from consecutivescroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.