CodenameOne - Layered Layout import not working -
according docu of layeredlayout here (javadoc), there inset method can used relative positioning. created bare pones cn1 project , added piece, docu:
container cnt = new container(new layeredlayout()); layeredlayout ll = (layeredlayout)cnt.getlayout(); textfield searchfield = new textfield(); button btn = new button("search"); cnt.add(searchfield).add(btn); ll .setinsets(searchfield, "1mm auto auto auto") .setinsets(btn, "0 auto auto 0") .setreferencecomponentleft(btn, searchfield, 1f) .setreferencecomponenttop(btn, searchfield, 0); however, getting error setinset method not found. looking @ source of layeredlayout class reveals indeed not have method.
the method setinsets(textfield, string) undefined type layeredlayout
i updated cn1 lib latest version of today.
any idea?
i suggest updating plugin.
in codename 1 settings select basic , click update client libs.
Comments
Post a Comment