I have implemented pull to refresh using an library from https://github.com/chrisbanes/Android-PullToRefresh but when i call the demo function(mylistview.demo()) on my listview object from my fragment,the function doesn't execute.
The demo function works when i call it from an onclicklistener so I think the problem has to do with the function being executed before the fragment is loaded. How can I solve this problem?