codenameone - Codename one image component -


what's best component include image layout?

i found label job. i've problem customizing width , height of image.

this android , feel:

enter image description here

i'd migrate cno.so, created custom theme backgound gray , margin around container. layout of container tablelayout set have 4 columns , 1 row. i'd see content (image, multiline label, label, image) autoscale based on parent width , i'd defined components width percentage fraction of parent.

for now, first image takes width , height icon, bigger needed. takes bit more space intend to. how can change image size without resizing image resource?

enter image description here

by default label has small amount of padding/margin around (and components).

you can test problem using label.setuiid("container") has 0 padding , margin (by default).

you can edit app theme using designer tool , add new uiid label can override padding/margin 0.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -