I have started using LWUIT which sounds interesting , i have made a form and has simply added an image to its background , my problem is that the image is getting streched and looks bad 😀
is there any way to set an image not to get stretshd on a form or any other component ?
I have started using LWUIT which sounds interesting , i have made a form
Share
This depends on the version of LWUIT you are using. In 1.4 you could define
bgTypein the Style to be BACKGROUND_IMAGE_ALIGNED and then define thebgAlignvalue to whatever you want (there are many types/alignments).The latest SVN and upcoming 1.5 simplifies this by removing bgAlign and adding to bgType all the alignment/tiling possibilities e.g.
BACKGROUND_IMAGE_TILE_VERTICAL_ALIGN_RIGHTorBACKGROUND_IMAGE_ALIGNED_TOP_LEFTetc…You can edit all of these visually in the resource editor using the theme.