Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created September 15, 2016 09:52
Show Gist options
  • Save codenameone/f6820a6b0c781e5bb5ffa8004c5b5f2e to your computer and use it in GitHub Desktop.
Save codenameone/f6820a6b0c781e5bb5ffa8004c5b5f2e to your computer and use it in GitHub Desktop.
Sample of simple single level floating button in Codename One
FloatingActionButton fab = FloatingActionButton.createFAB(FontImage.MATERIAL_ADD);
fab.addActionListener(e -> ToastBar.showErrorMessage("Not implemented yet..."));
fab.bindFabToContainer(hi.getContentPane());
@codenameone
Copy link
Author

The floating button class is a part of the Codename One API

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