Open HZKQ opened 2 years ago
版本: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>
结果: 还是能手动下拉刷新。
预期结果: 不让手动下拉刷新了。
版本:2.0.3 调用:
java代码:
布局:
结果: 还是能手动下拉刷新。
预期结果: 不让手动下拉刷新了。