SmartRefreshLayout icon indicating copy to clipboard operation
SmartRefreshLayout copied to clipboard

禁用下啦刷新功能无效

Open HZKQ opened this issue 4 years ago • 0 comments

版本:2.0.3 调用:

java代码:

refreshLayout = findViewById(R.id. refresh);
refreshLayout.setEnableRefresh(false);

布局:

    <com.scwang.smart.refresh.layout.SmartRefreshLayout
        android:id="@+id/refresh"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/colorWhite">

        <com.scwang.smart.refresh.header.MaterialHeader
            android:layout_width="match_parent"
            android:layout_height="150px"
            app:srlFinishDuration="200" />

        <com.yanzhenjie.recyclerview.SwipeRecyclerView
            android:id="@+id/rv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:overScrollMode="never"
            app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
            tools:itemCount="10"
            tools:listitem="@layout/rv_item_device_group" />

    </com.scwang.smart.refresh.layout.SmartRefreshLayout>

结果: 还是能手动下拉刷新。

预期结果: 不让手动下拉刷新了。

HZKQ avatar Dec 22 '21 11:12 HZKQ