I added a \"pull to refresh\" to my listView, i also wanted to add an empty view when the list is empty - Now i got this error. How can i make this work? if im positioning a
SwipeRefreshLayout should be the parent in the XML file.
You can use a FrameLayout as the child of SwipeRefreshLayout. The ListView and TextView (or any other empty state view) can be child views of the FrameLayout.