Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created February 18, 2016 20:36
Show Gist options
  • Save codenameone/dc9c7f13f6b312d1edc8 to your computer and use it in GitHub Desktop.
Save codenameone/dc9c7f13f6b312d1edc8 to your computer and use it in GitHub Desktop.
Sample of the usage of setRendering prototype
Map<String, Object> proto = new HashMap<>();
map.put("Line1", "WWWWWWWWWWWWWWWWWWWW");
map.put("Line2", "WWWWWWWWWWWWWWWWWWWW");
int mm5 = Display.getInstance().convertToPixels(5, true);
map.put("icon", Image.create(mm5, mm5));
myMultiList.setRenderingPrototype(map);
@codenameone
Copy link
Author

Sample usage of List.

From the Codename One project

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