Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created February 28, 2016 10:17
Show Gist options
  • Save codenameone/8cf6f70188959524474b to your computer and use it in GitHub Desktop.
Save codenameone/8cf6f70188959524474b to your computer and use it in GitHub Desktop.
Usage of the FontImage class with the Material design icons. This allows integrating material design icons into Codename One without any additional code
Form hi = new Form("Icon Font");
Button myButton = new Button("Save");
FontImage.setMaterialIcon(myButton, FontImage.MATERIAL_SAVE);
hi.add(myButton);
@codenameone
Copy link
Author

Sample usage of FontImage.

From the Codename One project

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