Created
February 28, 2016 10:16
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Form hi = new Form("Icon Font"); | |
Button myButton = new Button("Save"); | |
myButton.setIcon(FontImage.createMaterial(FontImage.MATERIAL_SAVE, myButton.getUnselectedStyle())); | |
hi.add(myButton); |
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
I am interested to know about custom icons