Android support v4 SwipeRefreshLayout empty view issue

后端 未结 9 1237
耶瑟儿~
耶瑟儿~ 2021-01-01 18:01

SwipeRefresh is not working after setting an empty view for listview which is the only child of a SwipeRefresh layout. How to solve this issue?

9条回答
  •  不知归路
    2021-01-01 18:58

    I fixed this issue using two SwipeToRefreshLayouts.

    • One for wrapping the ListView
    • The other as an emptyView

    I posted my code on GitHub.

提交回复
热议问题