Abhishek Tandon Abhishek Tandon - 1 year ago 108
Android Question

SwipeReferesh is not working in Android

I am working on a app and when I apply following code it shows errors in second line,


new SwipeRefreshLayout.OnRefreshListener() {
public void onRefresh() {

What could be the issue?

Answer Source

You might have forgotten to add SwipeRefreshLayout tag in your layout file or may be you forget to initialize it before calling setOnRefreshListener to it.

If this will not fix your problem add your layout file and code there.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download