codenameone - RoundBorder doesnt work for ScaleImageButton -
roundborder doesnt work scaleimagebutton.
//it doesnt works scaleimagebutton leavebutton = new scaleimagebutton(leaveicon); leavebutton.getallstyles().setborder( roundborder.create().color(0xffd04b).rectangle(true) ); //it works label leavebutton = new label(leaveicon); leavebutton.getallstyles().setborder( roundborder.create().color(0xffd04b).rectangle(true) );
one more thing how can make roundborder square? there's rectangle() method there other methods other structures instance pentagonal, hexagonal?
roundborder rounded, looking roundedborder else.
both of these won't work scaledimage*
classes rely on background style being image. can wrap class in container , give style want.
Comments
Post a Comment