Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created February 28, 2016 10:16
Show Gist options
  • Save codenameone/34fd9e519ec3d305a015 to your computer and use it in GitHub Desktop.
Save codenameone/34fd9e519ec3d305a015 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");
myButton.setIcon(FontImage.createMaterial(FontImage.MATERIAL_SAVE, myButton.getUnselectedStyle()));
hi.add(myButton);
@finistratbob
Copy link

I am interested to know about custom icons

@coxdenis32
Copy link

coxdenis32 commented May 11, 2021

Thanks for the recommendations. It seems to me that quality design strongly influences the visits and interactions with the site. Nowadays it is important to use Master Bundles ready-made solutions or element packs to save time. Effective space and work area should be visible and comfortable. The first step is to consolidate the elements and color backgrounds. Long experiments with the code can fail and this can affect the page load speed. The bad element is a step back.

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