Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created March 6, 2016 12:34
Show Gist options
  • Save codenameone/da87714157f97c739b2a to your computer and use it in GitHub Desktop.
Save codenameone/da87714157f97c739b2a to your computer and use it in GitHub Desktop.
Usage of the pull to refresh feature of Codename One
Form hi = new Form("Pull To Refresh", BoxLayout.y());
hi.getContentPane().addPullToRefresh(() -> {
hi.add("Pulled at " + L10NManager.getInstance().formatDateTimeShort(new Date()));
});
hi.show();
@codenameone
Copy link
Author

Sample usage of the Pull To Refresh feature of Component.

From the Codename One project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment