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?
Here is the solution: You can simply use this view hierarchy :
Then, in code, you just call:
_listView.setEmptyView(findViewById(android.R.id.empty));
That's it.