on 11-01-2009 9:42 AM
I have set the layout of a Transparent Container to GridLayout. I would like to get the border around a cell of the grid, and I don't know how to do that.
If necessary, the layout can be changed to MatrixLayout.
Thanks in advance,
Livio.
hi,
well, you can go by transparent containers or by images.
transparent comtainer. you are in GridLayout. if you want a border around a cell, you just have to add a transparent container to this cell. lets say, you already have a transparent container, containing a textview. then you put another transparent container (lets call it borderContainer) next to the textview. now drop the textview into the borderContainer. set the padding properties of the borderContainer to "small" and the cellBackgroundDesign to the bordercolour you want to have. then set the cellBackgroundDesign of the textview to another colour. now you have small paddings from the borderContainer aroud your textview.
the other option is to use images. place images around your cell. use an image of the colour you want to have. 1*1px image is enough. then you can set the width ans height properies of the image accordingly to influence the appearence of the border.
that is both not a real nice border, but a workaround that could do.
best regards,
christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
thank you for your suggestion. I tested it and it works. The look is not so nice, but I think it is the best that I can get. As a matter of facts this seems to me a useful functionality that is missing.
Instead of a TransparentContainer, I tried also with a Group, as suggested by Satish. The results are the same.
Thanks and regards,
Livio
Hi
Use cellBackgroundDesign = fill2 or cellBackgroundDesign = header and set the width accordingly.
Best Regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I dont think getting the border around the grid is possible. However you can use the HorizontalGutter UI element to draw lines. Might help you.
Thanks,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.