Created
August 28, 2017 10:26
-
-
Save sagorbrur/8de2749ee34bcd0a0bc044e0722877bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRL = (SwipeRefreshLayout) findViewById(R.id.swiperefresh); | |
SRL.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener(){ | |
@Override | |
public void onRefresh() { | |
Log.i(TAG, "onRefresh called from SwipeRefreshLayout"); | |
// This method performs the actual data-refresh operation. | |
// The method calls setRefreshing(false) when it's finished. | |
myUpdateOperation(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment