Skip to content

Instantly share code, notes, and snippets.

@sagorbrur
Created August 28, 2017 10:29
Show Gist options
  • Select an option

  • Save sagorbrur/35a6fb5d81e8f51dee840c7f71a2e963 to your computer and use it in GitHub Desktop.

Select an option

Save sagorbrur/35a6fb5d81e8f51dee840c7f71a2e963 to your computer and use it in GitHub Desktop.
case R.id.menu_refresh:
Log.i(TAG, "Refresh menu item selected");
// Signal SwipeRefreshLayout to start the progress indicator
SRL.setRefreshing(true);
// Start the refresh background task.
// This method calls setRefreshing(false) when it's finished.
myUpdateOperation();
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment