Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

结合SmartRefreshLayout使用绑定无效 #13

Open
idzyr opened this issue Jan 14, 2022 · 1 comment
Open

结合SmartRefreshLayout使用绑定无效 #13

idzyr opened this issue Jan 14, 2022 · 1 comment

Comments

@idzyr
Copy link

idzyr commented Jan 14, 2022

SmartRefreshLayout
https://github.com/scwang90/SmartRefreshLayout


按找你在简书上所说的绑定方式在空数据或者错误页面实现下拉刷新的功能
使用SmartRefreshLayout作为下拉刷新控件,绑定到RecyclerView但是绑定后什么也不显示

xml布局

<?xml version="1.0" encoding="utf-8"?>
<com.scwang.smart.refresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/installed_refresh"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.scwang.smart.refresh.header.MaterialHeader
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/installed_recycler"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

    <com.scwang.smart.refresh.footer.ClassicsFooter
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

</com.scwang.smart.refresh.layout.SmartRefreshLayout>
@idzyr
Copy link
Author

idzyr commented Jan 24, 2022

使用Google的Swiperefreshlayout组件也会出现此问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant